| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../fast/js/resources/js-test-pre.js"></script> | 3 <script src="../../fast/js/resources/js-test-pre.js"></script> |
| 4 <script> | 4 <script> |
| 5 function onSuccess() { | 5 function onSuccess() { |
| 6 } | 6 } |
| 7 | 7 |
| 8 function onFailure() { | 8 function onFailure() { |
| 9 } | 9 } |
| 10 | 10 |
| 11 function startIntent() { | 11 function startIntent() { |
| 12 debug("* launching intent action/type"); | 12 debug("* launching intent action/type"); |
| 13 var intent = new Intent("action", "type"); | 13 var intent = new WebKitIntent("action", "type"); |
| 14 try { | 14 try { |
| 15 navigator.startActivity(intent, onSuccess, onFailure); | 15 navigator.webkitStartActivity(intent, onSuccess, onFailure); |
| 16 } catch (e) { | 16 } catch (e) { |
| 17 testFailed("startActivity should not throw exception"); | 17 testFailed("startActivity should not throw exception"); |
| 18 } | 18 } |
| 19 | 19 |
| 20 debug("* navigating after startActivity"); | 20 debug("* navigating after startActivity"); |
| 21 | 21 |
| 22 // This should not crash. | 22 // This should not crash. |
| 23 window.location = "resources/pass.html"; | 23 window.location = "resources/pass.html"; |
| 24 } | 24 } |
| 25 </script> | 25 </script> |
| 26 </head> | 26 </head> |
| 27 <body> | 27 <body> |
| 28 <p>Original content</p> | 28 <p>Original content</p> |
| 29 </body> | 29 </body> |
| 30 </html> | 30 </html> |
| OLD | NEW |