| OLD | NEW |
| 1 <html><head> | 1 <html><head> |
| 2 <meta http-equiv="Pragma" content="no-cache" /> | 2 <meta http-equiv="Pragma" content="no-cache" /> |
| 3 <meta http-equiv="Expires" content="-1" /> | 3 <meta http-equiv="Expires" content="-1" /> |
| 4 <link rel="stylesheet" href="test_page.css"> | 4 <link rel="stylesheet" href="test_page.css"> |
| 5 <script> | 5 <script> |
| 6 // Do a deep comparison of two values. Return true if their values are | 6 // Do a deep comparison of two values. Return true if their values are |
| 7 // identical, false otherwise. | 7 // identical, false otherwise. |
| 8 function deepCompare(left, right) { | 8 function deepCompare(left, right) { |
| 9 if (typeof(left) !== typeof(right)) | 9 if (typeof(left) !== typeof(right)) |
| 10 return false; | 10 return false; |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 | 161 |
| 162 function LogHTML(html) { | 162 function LogHTML(html) { |
| 163 window.document.getElementById("console").innerHTML += html; | 163 window.document.getElementById("console").innerHTML += html; |
| 164 } | 164 } |
| 165 | 165 |
| 166 function RemovePluginWhenFinished() { | 166 function RemovePluginWhenFinished() { |
| 167 window.document.getElementById("container").removePlugin = true; | 167 window.document.getElementById("container").removePlugin = true; |
| 168 } | 168 } |
| 169 | 169 |
| 170 function sendAutomationMessage(msg) { | 170 function sendAutomationMessage(msg) { |
| 171 if (window.domAutomationController) { | 171 if (window.domAutomationController) |
| 172 window.domAutomationController.setAutomationId(0); | |
| 173 window.domAutomationController.send(msg); | 172 window.domAutomationController.send(msg); |
| 174 } | |
| 175 } | 173 } |
| 176 | 174 |
| 177 function LogTestTime(test_time) { | 175 function LogTestTime(test_time) { |
| 178 console.log(test_time); | 176 console.log(test_time); |
| 179 } | 177 } |
| 180 | 178 |
| 181 // If something goes really wrong, the test running inside the plugin may not | 179 // If something goes really wrong, the test running inside the plugin may not |
| 182 // terminate. For example, if the plugin does not load, the test will never | 180 // terminate. For example, if the plugin does not load, the test will never |
| 183 // send "PASS" to the browser. In this case we should explicitly use the | 181 // send "PASS" to the browser. In this case we should explicitly use the |
| 184 // automation controller to terminate the test. | 182 // automation controller to terminate the test. |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 InternalError("Bad MessageEvent.initMessageEvent called!"); | 367 InternalError("Bad MessageEvent.initMessageEvent called!"); |
| 370 } | 368 } |
| 371 | 369 |
| 372 </script> | 370 </script> |
| 373 </head><body> | 371 </head><body> |
| 374 <div> | 372 <div> |
| 375 <div id="container"></div> | 373 <div id="container"></div> |
| 376 <div id="console"><span class="load_msg">loading...</span></div> | 374 <div id="console"><span class="load_msg">loading...</span></div> |
| 377 </div> | 375 </div> |
| 378 </body></html> | 376 </body></html> |
| OLD | NEW |