Skip to content

Commit

Permalink
Tests: Change test infrastructure to use AMD and reduce boilerplate
Browse files Browse the repository at this point in the history
Ref #10119
Ref gh-1528

* Adds RequireJS and relies on AMD for loading dependencies.
* Updates to grunt-contrib-qunit 0.6.0.
* Convert `domEqual()` to a proper QUnit assertion.
* Introduces two bootstrap files (JS and CSS) which use `data-` attributes to
reduce the amount of boilerplate needed in each test
  • Loading branch information
scottgonzalez committed Apr 9, 2015
1 parent d0ea32e commit 7c896dd
Show file tree
Hide file tree
Showing 11 changed files with 2,584 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Gruntfile.js
Expand Up @@ -225,6 +225,7 @@ grunt.initConfig({
return !( /(all|index|test)\.html$/ ).test( file );
}),
options: {
inject: false,
page: {
viewportSize: { width: 700, height: 500 }
}
Expand Down Expand Up @@ -284,6 +285,8 @@ grunt.initConfig({
"qunit-composite/qunit-composite.css": "qunit-composite/qunit-composite.css",
"qunit-composite/LICENSE.txt": "qunit-composite/LICENSE.txt",

"requirejs/require.js": "requirejs/require.js",

"jquery-mousewheel/jquery.mousewheel.js": "jquery-mousewheel/jquery.mousewheel.js",
"jquery-mousewheel/LICENSE.txt": "jquery-mousewheel/LICENSE.txt",

Expand Down
1 change: 1 addition & 0 deletions bower.json
Expand Up @@ -17,6 +17,7 @@
"qunit": "1.18.0",
"qunit-assert-classes": "0.1.5",
"qunit-composite": "JamesMGreene/qunit-composite#v1.0.4",
"requirejs": "2.1.14",

"jquery-1.7.0": "jquery#1.7.0",
"jquery-1.7.1": "jquery#1.7.1",
Expand Down

0 comments on commit 7c896dd

Please sign in to comment.