| Index: third_party/WebKit/LayoutTests/inspector-protocol/page/frameStartedLoading.js
|
| diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/page/frameStartedLoading.js b/third_party/WebKit/LayoutTests/inspector-protocol/page/frameStartedLoading.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ab7932622be2ebb12d098f106a56a26125d56a78
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/inspector-protocol/page/frameStartedLoading.js
|
| @@ -0,0 +1,15 @@
|
| +(async function() {
|
| + let {page, session, Protocol} = await InspectorTest.startBlank('');
|
| +
|
| + Protocol.Page.enable();
|
| + session.evaluate(`
|
| + var frame = document.createElement('iframe');
|
| + frame.src = '${InspectorTest.url('../resources/blank.html')}';
|
| + document.body.appendChild(frame);
|
| + `);
|
| + await Protocol.Page.onceFrameStartedLoading();
|
| + InspectorTest.log('Started loading');
|
| + await Protocol.Page.onceFrameStoppedLoading();
|
| + InspectorTest.log('Stopped loading');
|
| + InspectorTest.completeTest();
|
| +})();
|
|
|