| Index: third_party/WebKit/LayoutTests/inspector-protocol/page/frameScheduledNavigation.js
|
| diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/page/frameScheduledNavigation.js b/third_party/WebKit/LayoutTests/inspector-protocol/page/frameScheduledNavigation.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5174378b280c11b9d23b72449fcc2ed570207f90
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/inspector-protocol/page/frameScheduledNavigation.js
|
| @@ -0,0 +1,21 @@
|
| +(async function() {
|
| + let {page, session, Protocol} = await InspectorTest.startBlank('');
|
| +
|
| + Protocol.Page.enable();
|
| + session.evaluate(`
|
| + var frame = document.createElement('iframe');
|
| + document.body.appendChild(frame);
|
| + frame.src = '${InspectorTest.url('../resources/blank.html')}';
|
| + `);
|
| +
|
| + var msg = await Protocol.Page.onceFrameScheduledNavigation();
|
| + InspectorTest.log('Scheduled navigation with delay ' + msg.params.delay);
|
| +
|
| + await Protocol.Page.onceFrameStartedLoading();
|
| + // This event should be received before the scheduled navigation is cleared.
|
| + InspectorTest.log('Started loading');
|
| +
|
| + await Protocol.Page.onceFrameClearedScheduledNavigation();
|
| + InspectorTest.log('Cleared scheduled navigation');
|
| + InspectorTest.completeTest();
|
| +})();
|
|
|