Permalink
Browse files

adding one test for server /tests/next request

  • Loading branch information...
1 parent 99c5ecf commit d74c5d4d4f359825bd47d1cee74139840adcd88b @caridy committed Sep 22, 2010
Showing with 7 additions and 0 deletions.
  1. +7 −0 test/server.js
View
7 test/server.js
@@ -121,6 +121,13 @@ vows.describe("HTTP Server").addBatch({
"the document should be served unmodified" : function (body) {
assert.equal(body, "a{}\n");
}
+ },
+ // tests related with delegate
+ "when executing a remote test /tests/next is requested by yetify redirect" : {
+ topic : request(200, "/tests/next"),
+ "the document should call YETI.next()" : function (body) {
+ assert.equal(body, "<script>try { parent.YETI.next(); } catch (e) {};</script>");
+ }
}
}
}).export(module);

0 comments on commit d74c5d4

Please sign in to comment.