| OLD | NEW |
| 1 description( | 1 description( |
| 2 "Tests that having a bad time has correct cross frame behavior, if an instance o
bject is created in a different global object than the affected prototype." | 2 "Tests that having a bad time has correct cross frame behavior, if an instance o
bject is created in a different global object than the affected prototype." |
| 3 ); | 3 ); |
| 4 | 4 |
| 5 if (window.testRunner) | 5 if (window.testRunner) |
| 6 testRunner.waitUntilDone(); | 6 testRunner.waitUntilDone(); |
| 7 | 7 |
| 8 var ouches = 0; | 8 var ouches = 0; |
| 9 | 9 |
| 10 function Cons() { } | 10 function Cons() { } |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 if (string == "42,,42,,42,,42,,42,") | 34 if (string == "42,,42,,42,,42,,42,") |
| 35 testPassed("Array has holes in odd numbered entries."); | 35 testPassed("Array has holes in odd numbered entries."); |
| 36 else | 36 else |
| 37 testFailed("Array does not have the required holes."); | 37 testFailed("Array does not have the required holes."); |
| 38 | 38 |
| 39 if (ouches == 5) | 39 if (ouches == 5) |
| 40 testPassed("Got 5 ouches."); | 40 testPassed("Got 5 ouches."); |
| 41 else | 41 else |
| 42 testFailed("Did not get 5 ouches. Got " + ouches + " + instead."); | 42 testFailed("Did not get 5 ouches. Got " + ouches + " + instead."); |
| 43 | 43 |
| 44 if (testRunner) | 44 if (window.testRunner) |
| 45 testRunner.notifyDone(); | 45 testRunner.notifyDone(); |
| 46 } | 46 } |
| 47 | 47 |
| 48 var frame = document.getElementById("myframe"); | 48 var frame = document.getElementById("myframe"); |
| 49 | 49 |
| 50 frame.contentDocument.open(); | 50 frame.contentDocument.open(); |
| 51 frame.contentDocument.write( | 51 frame.contentDocument.write( |
| 52 "<!DOCTYPE html>\n<html><body><script type=\"text/javascript\">\n" + | 52 "<!DOCTYPE html>\n<html><body><script type=\"text/javascript\">\n" + |
| 53 "window.parent.Cons.prototype = {};\n" + | 53 "window.parent.Cons.prototype = {};\n" + |
| 54 "window.parent.foo();\n" + | 54 "window.parent.foo();\n" + |
| 55 "window.parent.evil();\n" + | 55 "window.parent.evil();\n" + |
| 56 "window.parent.bar();\n" + | 56 "window.parent.bar();\n" + |
| 57 "window.parent.done();\n" + | 57 "window.parent.done();\n" + |
| 58 "</script></body></html>"); | 58 "</script></body></html>"); |
| 59 frame.contentDocument.close(); | 59 frame.contentDocument.close(); |
| OLD | NEW |