| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script> | 4 <script> |
| 5 if (window.testRunner) { | 5 if (window.testRunner) { |
| 6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
| 7 testRunner.waitUntilDone(); | 7 testRunner.waitUntilDone(); |
| 8 testRunner.setCanOpenWindows(); | 8 testRunner.setCanOpenWindows(); |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 66 |
| 67 function test1() { | 67 function test1() { |
| 68 focusShouldNotChange(function (aW) { aW.blur(); }, test2); | 68 focusShouldNotChange(function (aW) { aW.blur(); }, test2); |
| 69 } | 69 } |
| 70 | 70 |
| 71 function test2() { | 71 function test2() { |
| 72 focusShouldNotChange(function () { originatingWindow.focus(); }, test3); | 72 focusShouldNotChange(function () { originatingWindow.focus(); }, test3); |
| 73 } | 73 } |
| 74 | 74 |
| 75 function test3() { | 75 function test3() { |
| 76 focusShouldNotChange2('data:text/html,<script>opener.focus();opener.postMess
age("", "*");<\/script>', test4); | 76 focusShouldNotChange2('resources/mozilla-focus-blur-popup-opener-focus.html'
, test4); |
| 77 } | 77 } |
| 78 | 78 |
| 79 function test4() { | 79 function test4() { |
| 80 focusShouldNotChange2('data:text/html,<script>blur();opener.postMessage("",
"*");<\/script>', test5); | 80 focusShouldNotChange2('resources/mozilla-focus-blur-popup-blur.html', test5)
; |
| 81 } | 81 } |
| 82 | 82 |
| 83 function test5() | 83 function test5() |
| 84 { | 84 { |
| 85 var w = window.open('about:blank', '', 'foo'); | 85 var w = window.open('about:blank', '', 'foo'); |
| 86 var fail = true; | 86 var fail = true; |
| 87 | 87 |
| 88 function handler() { fail = false; } | 88 function handler() { fail = false; } |
| 89 | 89 |
| 90 w.addEventListener('focus', handler, false); | 90 w.addEventListener('focus', handler, false); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 115 invoked from the window that opened the former. If the test passes, you should | 115 invoked from the window that opened the former. If the test passes, you should |
| 116 see a series of PASS messages with the last being 'All tests finished'. | 116 see a series of PASS messages with the last being 'All tests finished'. |
| 117 </p> | 117 </p> |
| 118 <p> | 118 <p> |
| 119 This test is adopted from <a href='http://mxr.mozilla.org/mozilla-aurora/source/
dom/tests/mochitest/bugs/test_bug369306.html'>mozilla's tests</a>. | 119 This test is adopted from <a href='http://mxr.mozilla.org/mozilla-aurora/source/
dom/tests/mochitest/bugs/test_bug369306.html'>mozilla's tests</a>. |
| 120 </p> | 120 </p> |
| 121 </div> | 121 </div> |
| 122 <div id='log'></div> | 122 <div id='log'></div> |
| 123 </body> | 123 </body> |
| 124 </html> | 124 </html> |
| OLD | NEW |