Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: test/index.html

Issue 5090313282519040: Issue 517 - [Typed objects] Make unit tests compatible with Chrome and Safari (Closed)
Patch Set: Created May 19, 2014, 7:52 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/common.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/index.html
===================================================================
--- a/test/index.html
+++ b/test/index.html
@@ -1,23 +1,43 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="qunit.css"/>
+
+ <script>
+ var js17supported = false;
+ </script>
+ <script type="text/javascript;version=1.7">
+ js17supported = true;
+ </script>
+
<script src="jquery-1.7.1.min.js"></script>
<script src="qunit.js"></script>
<script src="common.js"></script>
- <script src="lib/typedObjects/utils.js" type="text/javascript;version=1.7"></script>
- <script src="lib/typedObjects/arrayTypes.js" type="text/javascript;version=1.7"></script>
- <script src="lib/typedObjects/primitiveTypes.js" type="text/javascript;version=1.7"></script>
- <script src="lib/typedObjects/references.js" type="text/javascript;version=1.7"></script>
- <script src="lib/typedObjects/objectTypes.js" type="text/javascript;version=1.7"></script>
- <script src="lib/typedObjects/stringType.js" type="text/javascript;version=1.7"></script>
- <script src="lib/typedObjects.js" type="text/javascript;version=1.7"></script>
- <script src="tests/typedObjects.js" type="text/javascript;version=1.7"></script>
+
+ <script>
+ var libs = [
+ "typedObjects/utils.js",
+ "typedObjects/arrayTypes.js",
+ "typedObjects/primitiveTypes.js",
+ "typedObjects/references.js",
+ "typedObjects/objectTypes.js",
+ "typedObjects/stringType.js",
+ "typedObjects.js"
+ ];
+ for (var i = 0; i < libs.length; i++)
+ addScript("/lib/" + libs[i]);
+
+ var tests = [
+ "typedObjects.js"
+ ];
+ for (var i = 0; i < tests.length; i++)
+ addScript("/tests/" + tests[i]);
+ </script>
</head>
<body>
<h1 id="qunit-header">Adblock Plus unit tests</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
</body>
« no previous file with comments | « test/common.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld