aboutsummaryrefslogtreecommitdiffstats
path: root/tests/visual/accordion/icons.html
blob: 630ac2f5022f2246fc670adb856e88e8a153daba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!doctype html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>Accordion Visual Test</title>
	<link rel="stylesheet" href="../../../themes/base/all.css">
	<script src="../../../jquery-1.10.2.js"></script>
	<script src="../../../ui/core.js"></script>
	<script src="../../../ui/widget.js"></script>
	<script src="../../../ui/accordion.js"></script>
	<script>
	$(function() {
		$( "#accordion-ynynyn" ).accordion({ icons: null });
		$( "#accordion-ynyny" ).accordion();
		$( "#accordion-ynyn" ).accordion({ icons: null });
		$( "#accordion-yny" ).accordion();
		$( "#accordion-yn" ).accordion({ icons: null });
		$( "#accordion-y" ).accordion();

		$( "#accordion-nynyny" ).accordion();
		$( "#accordion-nynyn" ).accordion({ icons: null });
		$( "#accordion-nyny" ).accordion();
		$( "#accordion-nyn" ).accordion({ icons: null });
		$( "#accordion-ny" ).accordion();
		$( "#accordion-n" ).accordion({ icons: null });
	});
	</script>
</head>
<body>

<p>WHAT: The following set of nested accordions alternate between icons and no icons.</p>
<p>EXPECTED: The padding on the headers should correctly account for the icon settings.</p>

<div id="accordion-y">
	<div>Icons</div>
	<div>
		<div id="accordion-yn">
			<div>No Icons</div>
			<div>
				<div id="accordion-yny">
					<div>Icons</div>
					<div>
						<div id="accordion-ynyn">
							<div>No Icons</div>
							<div>
								<div id="accordion-ynyny">
									<div>Icons</div>
									<div>
										<div id="accordion-ynynyn">
											<div>No Icons</div>
											<div></div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>

<div id="accordion-n">
	<div>No Icons</div>
	<div>
		<div id="accordion-ny">
			<div>Icons</div>
			<div>
				<div id="accordion-nyn">
					<div>No Icons</div>
					<div>
						<div id="accordion-nyny">
							<div>Icons</div>
							<div>
								<div id="accordion-nynyn">
									<div>No Icons</div>
									<div>
										<div id="accordion-nynyny">
											<div>Icons</div>
											<div></div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>

</body>
</html>