Permalink
Browse files

Add test coverage for Dav's 404 fix.

  • Loading branch information...
1 parent 049b3ae commit eefee4ddc9520f6491373b0cbbb13552d27b3cfe @reid reid committed Jun 8, 2012
Showing with 23 additions and 1 deletion.
  1. +22 −0 test/fixture/404-script.html
  2. +1 −1 test/functional.js
@@ -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>
View
@@ -362,7 +362,7 @@ function withTests() {
vows.describe("Yeti Functional")
.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({
"visits Yeti with invalid files": errorContext(withTests("this-file-does-not-exist.html"))

0 comments on commit eefee4d

Please sign in to comment.