OLD | NEW |
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 Loading... |
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 |
OLD | NEW |