OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE HTML> |
| 2 <html> |
| 3 <head> |
| 4 <script src="resources/js-test-pre.js"></script> |
| 5 </head> |
| 6 <body> |
| 7 <script> |
| 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"); |
| 10 shouldBeEqualToString("new MessageEvent('message', {origin: 2}).origin", "2"); |
| 11 var nonConvertibleToString = {toString: function() { throw "Exception in toStrin
g()"; }}; |
| 12 shouldThrow("new MessageEvent('message', {origin: nonConvertibleToString})", "'E
xception in toString()'"); |
| 13 </script> |
| 14 <script src="resources/js-test-post.js"></script> |
| 15 </body> |
| 16 </html> |
OLD | NEW |