| 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, and t
he prototype is assigned using __proto__." | 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, and t
he prototype is assigned using __proto__." |
| 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 var array; | 10 var array; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 if (string == "42,,42,,42,,42,,42,") | 33 if (string == "42,,42,,42,,42,,42,") |
| 34 testPassed("Array has holes in odd numbered entries."); | 34 testPassed("Array has holes in odd numbered entries."); |
| 35 else | 35 else |
| 36 testFailed("Array does not have the required holes."); | 36 testFailed("Array does not have the required holes."); |
| 37 | 37 |
| 38 if (ouches == 5) | 38 if (ouches == 5) |
| 39 testPassed("Got 5 ouches."); | 39 testPassed("Got 5 ouches."); |
| 40 else | 40 else |
| 41 testFailed("Did not get 5 ouches. Got " + ouches + " + instead."); | 41 testFailed("Did not get 5 ouches. Got " + ouches + " + instead."); |
| 42 | 42 |
| 43 if (testRunner) | 43 if (window.testRunner) |
| 44 testRunner.notifyDone(); | 44 testRunner.notifyDone(); |
| 45 } | 45 } |
| 46 | 46 |
| 47 var frame = document.getElementById("myframe"); | 47 var frame = document.getElementById("myframe"); |
| 48 | 48 |
| 49 frame.contentDocument.open(); | 49 frame.contentDocument.open(); |
| 50 frame.contentDocument.write( | 50 frame.contentDocument.write( |
| 51 "<!DOCTYPE html>\n<html><body><script type=\"text/javascript\">\n" + | 51 "<!DOCTYPE html>\n<html><body><script type=\"text/javascript\">\n" + |
| 52 "var thePrototype = {};\n" + | 52 "var thePrototype = {};\n" + |
| 53 "window.parent.foo(thePrototype);\n" + | 53 "window.parent.foo(thePrototype);\n" + |
| 54 "window.parent.evil(thePrototype);\n" + | 54 "window.parent.evil(thePrototype);\n" + |
| 55 "window.parent.bar();\n" + | 55 "window.parent.bar();\n" + |
| 56 "window.parent.done();\n" + | 56 "window.parent.done();\n" + |
| 57 "</script></body></html>"); | 57 "</script></body></html>"); |
| 58 frame.contentDocument.close(); | 58 frame.contentDocument.close(); |
| OLD | NEW |