Skip to content

Commit

Permalink
Add test coverage for Dav's 404 fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
reid committed Jun 8, 2012
1 parent 049b3ae commit eefee4d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions test/fixture/404-script.html
@@ -0,0 +1,22 @@
<!doctype html>
<title>Yeti Basic Test with 404ing script</title>
<script type="text/javascript" src="../../dep/yui-test.js"></script>
<script src="bogus.js"></script>
<script>
YUI().use("test", function (Y) {
var SimpleTestCase = new Y.Test.Case({
name: "Yeti Simple Test Case, with 404ing script",
testOk: function () {
Y.Assert.areEqual(1, 1);
}
});

var SimpleSuite = new Y.Test.Suite("Yeti Simple Test Suite, with 404ing script");

SimpleSuite.add(SimpleTestCase);

Y.Test.Runner.add(SimpleSuite);

Y.Test.Runner.run();
});
</script>
2 changes: 1 addition & 1 deletion test/functional.js
Expand Up @@ -362,7 +362,7 @@ function withTests() {


vows.describe("Yeti Functional") vows.describe("Yeti Functional")
.addBatch(hub.functionalContext({ .addBatch(hub.functionalContext({
"visits Yeti": visitorContext(withTests("basic.html", "local-js.html")) "visits Yeti": visitorContext(withTests("basic.html", "local-js.html", "404-script.html"))
})) }))
.addBatch(hub.functionalContext({ .addBatch(hub.functionalContext({
"visits Yeti with invalid files": errorContext(withTests("this-file-does-not-exist.html")) "visits Yeti with invalid files": errorContext(withTests("this-file-does-not-exist.html"))
Expand Down

0 comments on commit eefee4d

Please sign in to comment.