Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

test: Use local tests instead of form addons and update QUnit to 1.12

Follows-up 212ab2f. Fixes #2.
  • Loading branch information...
commit 23b032f4c67bcc1b30394cedfeb2019202175689 1 parent 212ab2f
@Krinkle Krinkle authored
View
2  package.json
@@ -34,6 +34,6 @@
"grunt-contrib-connect": "~0.2.0",
"grunt-contrib-qunit": "~0.2.0",
"grunt-git-authors": "~1.2.0",
- "qunitjs": "1.11.0"
+ "qunitjs": "1.12.x"
}
}
View
18 test/bar.html
@@ -0,0 +1,18 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <title>Example Test Suite: Bar</title>
+ <link rel="stylesheet" href="../node_modules/qunitjs/qunit/qunit.css">
+ <script src="../node_modules/qunitjs/qunit/qunit.js"></script>
+ <script>
+ QUnit.module( "Bar" );
+ QUnit.test( "example", function( assert ) {
+ assert.ok( true, "True" );
+ } );
+ </script>
+</head>
+<body>
+ <div id="qunit"></div>
+</body>
+</html>
View
18 test/foo.html
@@ -0,0 +1,18 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <title>Example Test Suite: Foo</title>
+ <link rel="stylesheet" href="../node_modules/qunitjs/qunit/qunit.css">
+ <script src="../node_modules/qunitjs/qunit/qunit.js"></script>
+ <script>
+ QUnit.module( "Foo" );
+ QUnit.test( "example", function( assert ) {
+ assert.ok( true, "True" );
+ } );
+ </script>
+</head>
+<body>
+ <div id="qunit"></div>
+</body>
+</html>
View
11 test/index.html
@@ -9,16 +9,15 @@
<script src="../qunit-composite.js"></script>
<script>
QUnit.testSuites([
- "../node_modules/qunitjs/test/index.html",
- "../node_modules/qunitjs/addons/canvas/canvas.html",
- "../node_modules/qunitjs/addons/close-enough/close-enough.html",
- { name: "step tests", path: "../node_modules/qunitjs/addons/step/step.html" }
+ "./foo.html",
+ "./bar.html",
+ { name: "Quux Test Suite", path: "./quux.html" },
+ { name: "QUnit Core Test Suite", path: "../node_modules/qunitjs/test/index.html" }
]);
</script>
</head>
<body>
<div id="qunit"></div>
- <div id="qunit-fixture">
-</div>
+ <div id="qunit-fixture"></div>
</body>
</html>
View
18 test/quux.html
@@ -0,0 +1,18 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <title>Example Test Suite: Quux</title>
+ <link rel="stylesheet" href="../node_modules/qunitjs/qunit/qunit.css">
+ <script src="../node_modules/qunitjs/qunit/qunit.js"></script>
+ <script>
+ QUnit.module( "Quux" );
+ QUnit.test( "example", function( assert ) {
+ assert.ok( true, "True" );
+ } );
+ </script>
+</head>
+<body>
+ <div id="qunit"></div>
+</body>
+</html>
Please sign in to comment.
Something went wrong with that request. Please try again.