Created
February 19, 2014 08:43
-
-
Save wenzowski/9088218 to your computer and use it in GitHub Desktop.
test suite for josephg/node-browserchannel
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
72 passing (5s) | |
1 pending | |
4 failing | |
1) server The server gives the client correctly formatted backchannel data if TYPE=html: | |
Uncaught AssertionError: "<html><body><script>try {parent.m(\"[[1,[\\\"hello\\\",\\\"there\\\",null,1000,{},[],[555]]]]\\n\")} catch(e) {}</script>\n7cca === "<html><body><script>try {parent.m(\"[[1,[\\\"hello\\\",\\\"there\\\",null,1000,{},[],[555]]]]\\n\")} catch(e) {}</script>\n7cca | |
+ expected - actual | |
<html><body><script>try {parent.m("[[1,[\"hello\",\"there\",null,1000,{},[],[555]]]]\n")} catch(e) {}</script> | |
+7cca69475363026330a0d99468e88d23ce95e222591126443015f5f462d9a177186c8701fb45a6ffe e0daf1a178fc0f58cd309308fba7e6f011ac38c9cdd4580760f1d4560a84d5ca0355ecbbed2ab715a3350fe0c47 9050640bd0e77acec90c58c4d3dd0f5cf8d4510e68c8b12e087bd88cad349aafd2ab16b07b0b1b8276091217a44 a9fe92fedacffff48092ee693af | |
-7cca69475363026330a0d99468e88d23ce95e222591126443015f5f462d9a177186c8701fb45a6ffee0daf1a178fc0f58cd309308fba7e6f011ac38c9cdd4580760f1d4560a84d5ca0355ecbbed2ab715a3350fe0c479050640bd0e77acec90c58c4d3dd0f5cf8d4510e68c8b12e087bd88cad349aafd2ab16b07b0b1b8276091217a44a9fe92fedacffff48092ee693af | |
<script>try {parent.d(); }catch (e){}</script> | |
at IncomingMessage.res.on.endlistener (/Users/wenzowski/code/node-browserchannel/test/server.coffee:102:12) | |
at IncomingMessage.EventEmitter.emit (events.js:117:20) | |
at _stream_readable.js:920:16 | |
at process._tickCallback (node.js:415:13) | |
2) server The server sets the domain if we have a domain set: | |
Uncaught AssertionError: "<html><body><script>try{document.domain=\"foo.com\";}catch(e){}</script>\n<script>try {parent.m(\"[[1,[\\\"hello\\\",\\\"there\ === "<html><body><script>try{document.domain=\"foo.com\";}catch(e){}</script>\n<script>try {parent.m(\"[[1,[\\\"hello\\\",\\\"there\ | |
+ expected - actual | |
<html><body><script>try{document.domain="foo.com";}catch(e){}</script> | |
<script>try {parent.m("[[1,[\"hello\",\"there\",null,1000,{},[],[555]]]]\n")} catch(e) {}</script> | |
+7cca69475363026330a0d99468e88d23ce95e222591126443015f5f462d9a177186c8701fb45a6ffe e0daf1a178fc0f58cd309308fba7e6f011ac38c9cdd4580760f1d4560a84d5ca0355ecbbed2ab715a3350fe0c47 9050640bd0e77acec90c58c4d3dd0f5cf8d4510e68c8b12e087bd88cad349aafd2ab16b07b0b1b8276091217a44 a9fe92fedacffff48092ee693af | |
-7cca69475363026330a0d99468e88d23ce95e222591126443015f5f462d9a177186c8701fb45a6ffee0daf1a178fc0f58cd309308fba7e6f011ac38c9cdd4580760f1d4560a84d5ca0355ecbbed2ab715a3350fe0c479050640bd0e77acec90c58c4d3dd0f5cf8d4510e68c8b12e087bd88cad349aafd2ab16b07b0b1b8276091217a44a9fe92fedacffff48092ee693af | |
<script>try {parent.d(); }catch (e){}</script> | |
at IncomingMessage.res.on.endlistener (/Users/wenzowski/code/node-browserchannel/test/server.coffee:102:12) | |
at IncomingMessage.EventEmitter.emit (events.js:117:20) | |
at _stream_readable.js:920:16 | |
at process._tickCallback (node.js:415:13) | |
3) server Getting test phase 2 returns 11111 then 2 html: | |
Error: timeout of 2000ms exceeded | |
at [object Object].<anonymous> (/Users/wenzowski/code/node-browserchannel/node_modules/mocha/lib/runnable.js:175:14) | |
at Timer.listOnTimeout [as ontimeout] (timers.js:110:15) | |
4) server "after each" hook: | |
Error: timeout of 2000ms exceeded | |
at [object Object].<anonymous> (/Users/wenzowski/code/node-browserchannel/node_modules/mocha/lib/runnable.js:175:14) | |
at Timer.listOnTimeout [as ontimeout] (timers.js:110:15) |
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
ProductName: Mac OS X | |
ProductVersion: 10.9.1 | |
BuildVersion: 13B3116 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment