| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style> | 4 <style> |
| 5 #inert-div { | 5 #inert-div { |
| 6 height: 100px; | 6 height: 100px; |
| 7 width: 100px; | 7 width: 100px; |
| 8 background: blue; | 8 background: blue; |
| 9 } | 9 } |
| 10 | 10 |
| 11 dialog { | 11 dialog { |
| 12 width: 100px; | 12 width: 100px; |
| 13 } | 13 } |
| 14 | 14 |
| 15 dialog::backdrop { | 15 dialog::backdrop { |
| 16 display: none; | 16 display: none; |
| 17 } | 17 } |
| 18 | 18 |
| 19 #dialog-div { | 19 #dialog-div { |
| 20 height: 100px; | 20 height: 100px; |
| 21 width: 100px; | 21 width: 100px; |
| 22 background: red; | 22 background: red; |
| 23 } | 23 } |
| 24 </style> | 24 </style> |
| 25 <script src="../../js/resources/js-test-pre.js"></script> | 25 <script src="../../../resources/js-test.js"></script> |
| 26 </head> | 26 </head> |
| 27 <body> | 27 <body> |
| 28 <div id="inert-div"></div> | 28 <div id="inert-div"></div> |
| 29 <dialog id="dialog"> | 29 <dialog id="dialog"> |
| 30 <div id="dialog-div"></div> | 30 <div id="dialog-div"></div> |
| 31 </dialog> | 31 </dialog> |
| 32 <script> | 32 <script> |
| 33 description('Test for bug 110952. Ensure that mouse events are not ' + | 33 description('Test for bug 110952. Ensure that mouse events are not ' + |
| 34 'dispatched to an inert node. To test manually, move the mouse ' + | 34 'dispatched to an inert node. To test manually, move the mouse ' + |
| 35 'to the blue box, click, and then move the mouse outside. Then ' + | 35 'to the blue box, click, and then move the mouse outside. Then ' + |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 shouldBeFalse('inertDiv.firedOn'); | 96 shouldBeFalse('inertDiv.firedOn'); |
| 97 shouldBe('Object.keys(body.firedOnEvents).length', 'events.length'); | 97 shouldBe('Object.keys(body.firedOnEvents).length', 'events.length'); |
| 98 | 98 |
| 99 debug('Clicking on non-inert box'); | 99 debug('Clicking on non-inert box'); |
| 100 clickOn(dialogDiv); | 100 clickOn(dialogDiv); |
| 101 shouldBeFalse('inertDiv.firedOn'); | 101 shouldBeFalse('inertDiv.firedOn'); |
| 102 shouldBe('Object.keys(dialogDiv.firedOnEvents).length', 'events.length'); | 102 shouldBe('Object.keys(dialogDiv.firedOnEvents).length', 'events.length'); |
| 103 </script> | 103 </script> |
| 104 </body> | 104 </body> |
| 105 </html> | 105 </html> |
| OLD | NEW |