Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds a webpack smoke test that builds a basic app and makes sure it works. Closes #4200
- Loading branch information
Showing
6 changed files
with
892 additions
and
3 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
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,6 @@ | ||
<!DOCTYPE html> | ||
<title>CanJS Builder tests</title> | ||
<script src="../../node_modules/steal/steal.js" | ||
main="can/test/builders/test" | ||
env="canjs-test"></script> | ||
<div id="qunit-fixture"></div> |
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,18 @@ | ||
var QUnit = require("steal-qunit"); | ||
|
||
var makeIframe = function(src){ | ||
var iframe = document.createElement('iframe'); | ||
window.removeMyself = function(){ | ||
delete window.removeMyself; | ||
document.body.removeChild(iframe); | ||
QUnit.start(); | ||
}; | ||
document.body.appendChild(iframe); | ||
iframe.src = src; | ||
}; | ||
|
||
QUnit.module("webpack"); | ||
|
||
QUnit.asyncTest("able to load an app", function(){ | ||
makeIframe(__dirname + "/webpack/site.html?" + Math.random()); | ||
}); |
Oops, something went wrong.