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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-await-promise.html

Issue 2942573003: [DevTools] New harness for inspector-protocol layout tests (Closed)
Patch Set: Protocol -> dp Created 3 years, 6 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 type="text/javascript" src="../../http/tests/inspector-protocol/inspecto r-protocol-test.js"></script> 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/resource s/inspector-protocol-test.js"></script>
4 <script> 4 <script>
5 5
6 var resolveCallback; 6 var resolveCallback;
7 var rejectCallback; 7 var rejectCallback;
8 function createPromise() 8 function createPromise()
9 { 9 {
10 return new Promise((resolve, reject) => { resolveCallback = resolve; rejectC allback = reject }); 10 return new Promise((resolve, reject) => { resolveCallback = resolve; rejectC allback = reject });
11 } 11 }
12 12
13 function resolvePromise() 13 function resolvePromise()
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 ]); 134 ]);
135 } 135 }
136 } 136 }
137 </script> 137 </script>
138 </head> 138 </head>
139 <body onLoad="runTest();"> 139 <body onLoad="runTest();">
140 Tests that Runtime.awaitPromise works. 140 Tests that Runtime.awaitPromise works.
141 </body> 141 </body>
142 </html> 142 </html>
143 143
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698