aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tabs/tabs_deprecated.html
blob: b50cebebc8faac4d291b879a585f2bfadb975002 (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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<!doctype html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>jQuery UI Tabs Test Suite</title>

	<link rel="stylesheet" href="../../../themes/base/jquery.ui.tabs.css">

	<script src="../../../jquery-1.5.1.js"></script>
	<script src="../../../external/jquery.cookie.js"></script>
	<script src="../../../ui/jquery.ui.core.js"></script>
	<script src="../../../ui/jquery.ui.widget.js"></script>
	<script src="../../../ui/jquery.ui.tabs.js"></script>

	<link rel="stylesheet" href="../../../external/qunit.css">
	<script src="../../../external/qunit.js"></script>
	<script src="../../jquery.simulate.js"></script>
	<script src="../testsuite.js"></script>

	<script src="tabs_defaults_deprecated.js"></script>
	<script src="tabs_core.js"></script>
	<script src="tabs_events.js"></script>
	<script src="tabs_methods.js"></script>
	<script src="tabs_options.js"></script>
	<script src="tabs_tickets.js"></script>
	<script src="tabs_deprecated.js"></script>

	<script>
	function tabs_state( tabs ) {
		var expected = $.makeArray( arguments ).slice( 1 );
		var actual = tabs.find( ".ui-tabs-nav li" ).map(function() {
			return $( this ).hasClass( "ui-state-active" ) ? 1 : 0;
		}).get();
		same( actual, expected );
	}
	</script>
	<script>
	// disable this stale testsuite for testswarm only
	var url = window.location.search;
	url = decodeURIComponent( url.slice( url.indexOf("swarmURL=") + 9 ) );
	if ( url && url.indexOf("http") == 0 ) {
		// reset config to kill previous tests; make sure testsuite.js is loaded afterwards to init the testswarm script
		QUnit.init();
		test("tabs", function() { ok(true, "disabled tabs testsuite"); });
	}
	</script>
	<script src="../swarminject.js"></script>
</head>
<body>

<h1 id="qunit-header">jQuery UI Tabs Test Suite</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">

<div id="tabs1">
	<ul>
		<li><a href="#fragment-1"><span>1</span></a></li>
		<li><a href="#fragment-2"><span>2</span></a></li>
		<li><a href="#fragment-3"><span>3</span></a></li>
	</ul>
	<div id="fragment-1"></div>
	<div id="fragment-2"></div>
	<div id="fragment-3"></div>
</div>

<div id="tabs2">
	<ul>
		<li><a href="#colon:test"><span>1</span></a></li>
		<li><a href="#inline-style"><span>2</span></a></li>
		<li><a href="data/test.html#test"><span>3</span></a></li>
		<li><a href="data/test.html" title="∫ßáö Սե"><span>4</span></a></li>
	</ul>
	<div id="colon:test"></div>
	<div style="height: 300px;" id="inline-style"></div>
</div>

<div id="tabs3">
	<div>
		<ul id="tabs3-list">
			<li><a href="#tabs3-1">1</a></li>
		</ul>
	</div>
</div>

<div id="tabs4">
	<ul id="tabs4-list">
		<li><a href="#tabs4-1">1</a></li>
	</ul>
	<ol>
		<li><a href="#tabs4-1">1</a></li>
	</ol>
</div>

<div id="tabs4a">
	<ol id="tabs4a-list">
		<li><a href="#tabs4a-1">1</a></li>
	</ol>
	<ul>
		<li><a href="#tabs4a-1">1</a></li>
	</ul>
</div>

<div id="tabs5">
	<div>
		<ul id="tabs5-list"></ul>
	</div>
</div>

<div id="tabs6">
	<ul id="tabs6-list">
		<li><a href="#tabs6-1">1</a>
			<ul>
				<li><a href="#item6-3">3</a></li>
				<li><a href="#item6-4">4</a></li>
			</ul>
		</li>
		<li><a href="#tabs6-2">2</a></li>
	</ul>
	<div id="tabs6-1"></div>
	<div id="tabs6-2"></div>
</div>

<div id="tabs7">
	<ul id="tabs7-list">
		<li><a href="#tabs7-1">1</a></li>
		<li><a href="#tabs7-2">2</a></li>
	</ul>
	<div id="tabs7-2"></div>
	<div id="tabs7-1"></div>
</div>

</div>
</body>
</html>