Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Tests: Add support for running unit tests via grunt with karma
- Update QUnit to 1.23.1 - Remove unused dl#dl from test/index.html - Remove unused map#imgmap from test/index.html - Ensure all urls to data use baseURI - Add the 'grunt karma:main' task - customContextFile & customDebugFile - Add 'npm run jenkins' script Close gh-3744 Fixes gh-1999
- Loading branch information
Showing
60 changed files
with
3,399 additions
and
2,692 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,5 @@ node_js: | |
- "6" | ||
- "8" | ||
- "9" | ||
addons: | ||
chrome: stable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
var fs = require( "fs" ); | ||
|
||
module.exports = function( grunt ) { | ||
grunt.registerTask( "qunit_fixture", function() { | ||
var dest = "./test/data/qunit-fixture.js"; | ||
fs.writeFileSync( | ||
dest, | ||
"// Generated by build/tasks/qunit_fixture.js\n" + | ||
"QUnit.config.fixture = " + | ||
JSON.stringify( | ||
fs.readFileSync( | ||
"./test/data/qunit-fixture.html", | ||
"utf8" | ||
).toString() | ||
) + | ||
";\n" + | ||
"// Compat with QUnit 1.x:\n" + | ||
"document.getElementById( \"qunit-fixture\" ).innerHTML = QUnit.config.fixture;\n" | ||
); | ||
grunt.log.ok( "Updated " + dest + "." ); | ||
} ); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.