| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../resources/js-test.js"></script> | 4 <script src="../resources/js-test.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 | 7 |
| 8 <div id="textbox" contentEditable="true">First<p>Second</p></div> | 8 <div id="textbox" contentEditable="true">First<p>Second</p></div> |
| 9 | 9 |
| 10 <div id="console"></div> | 10 <div id="console"></div> |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 // page and initially setting focus. | 31 // page and initially setting focus. |
| 32 window.setTimeout(function() { | 32 window.setTimeout(function() { |
| 33 axTextBox.addNotificationListener(function(notification) { | 33 axTextBox.addNotificationListener(function(notification) { |
| 34 testPassed("Got notification: " + notification); | 34 testPassed("Got notification: " + notification); |
| 35 | 35 |
| 36 if (notification == "ValueChanged") | 36 if (notification == "ValueChanged") |
| 37 valueChangedCount++; | 37 valueChangedCount++; |
| 38 else if (notification == "SelectedTextChanged") | 38 else if (notification == "SelectedTextChanged") |
| 39 selectedTextChangedCount++; | 39 selectedTextChangedCount++; |
| 40 | 40 |
| 41 if (valueChangedCount == 3 && selectedTextChangedCount == 6) { | 41 if (valueChangedCount == 8 && selectedTextChangedCount == 6) { |
| 42 textbox.style.display = "none"; | 42 textbox.style.display = "none"; |
| 43 finishJSTest(); | 43 finishJSTest(); |
| 44 } | 44 } |
| 45 }); | 45 }); |
| 46 | 46 |
| 47 eventSender.keyDown("leftArrow", []); | 47 eventSender.keyDown("leftArrow", []); |
| 48 eventSender.keyDown("leftArrow", []); | 48 eventSender.keyDown("leftArrow", []); |
| 49 eventSender.keyDown("leftArrow", []); | 49 eventSender.keyDown("w", []); |
| 50 eventSender.keyDown("x", []); | 50 eventSender.keyDown("x", []); |
| 51 eventSender.keyDown("y", []); | 51 eventSender.keyDown("y", []); |
| 52 eventSender.keyDown("z", []); | 52 eventSender.keyDown("z", []); |
| 53 | 53 |
| 54 }, 0); | 54 }, 0); |
| 55 } | 55 } |
| 56 | 56 |
| 57 </script> | 57 </script> |
| 58 | 58 |
| 59 </body> | 59 </body> |
| 60 </html> | 60 </html> |
| OLD | NEW |