Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Side by Side Diff: LayoutTests/webintents/resources/web-intents-reload-orig.html

Issue 9949021: Merge 113282 - Switch web intents API to be vendor-prefixed (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1084/
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698