| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../resources/testharness.js"></script> |
| 3 <script src="../resources/testharnessreport.js"></script> |
| 4 <body> |
| 5 <script> |
| 6 |
| 7 var FRAME_SRC = "resources/navigate-during-commit.start.html" |
| 8 |
| 9 // Called by the navigate-during-commit.success.html. |
| 10 var resolve_test = undefined; |
| 11 |
| 12 function conduct_test(frame) { |
| 13 return new Promise(function(resolve) { |
| 14 var frame = document.createElement('iframe'); |
| 15 frame.src = FRAME_SRC; |
| 16 document.body.appendChild(frame); |
| 17 resolve_test = function() { |
| 18 document.body.removeChild(frame); |
| 19 resolve(); |
| 20 }; |
| 21 }); |
| 22 } |
| 23 |
| 24 async_test(function(t) { |
| 25 conduct_test() |
| 26 .then(function() { t.done(); }) |
| 27 .catch(function() { assert(false); }); |
| 28 }, 'navigate-during-commit'); |
| 29 |
| 30 </script> |
| 31 </body> |
| OLD | NEW |