OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="resources/js-test-pre.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 description("Checks that an exception is thrown when a dictionary value cannot b
e converted to a String"); | 8 description("Checks that an exception is thrown when a dictionary value cannot b
e converted to a String"); |
9 shouldBeEqualToString("new MessageEvent('message', {origin: 'test'}).origin", "t
est"); | 9 shouldBeEqualToString("new MessageEvent('message', {origin: 'test'}).origin", "t
est"); |
10 shouldBeEqualToString("new MessageEvent('message', {origin: 2}).origin", "2"); | 10 shouldBeEqualToString("new MessageEvent('message', {origin: 2}).origin", "2"); |
11 var nonConvertibleToString = {toString: function() { throw "Exception in toStrin
g()"; }}; | 11 var nonConvertibleToString = {toString: function() { throw "Exception in toStrin
g()"; }}; |
12 shouldThrow("new MessageEvent('message', {origin: nonConvertibleToString})", "'E
xception in toString()'"); | 12 shouldThrow("new MessageEvent('message', {origin: nonConvertibleToString})", "'E
xception in toString()'"); |
13 </script> | 13 </script> |
14 </body> | 14 </body> |
15 </html> | 15 </html> |
OLD | NEW |