File: mixed_sort.html

package info (click to toggle)
sizzle 2.3.5%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 960 kB
  • sloc: javascript: 5,954; makefile: 7
file content (22 lines) | stat: -rw-r--r-- 600 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<script>var QUnit = parent.QUnit</script>
	<script src="testinit.js"></script>
	<script src="../../dist/sizzle.js"></script>
</head>
<body>
	<script>
		var doc = parent.document,
			unframed = [ doc.getElementById( "qunit-fixture" ), doc.body, doc.documentElement ],
			framed = Sizzle( "*" );

		window.parent.iframeCallback(
			Sizzle.uniqueSort( unframed.concat( framed ) ),
			framed.concat( unframed.reverse() ),
			"Mixed array was sorted correctly"
		);
	</script>
</body>
</html>