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..369d91ab372ed2ef8194e070cf1ed5c99a8d8fc4 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/page/frameStartedLoading.js |
@@ -0,0 +1,15 @@ |
+(async function(testRunner) { |
+ let {page, session, dp} = await testRunner.startBlank(''); |
+ |
+ dp.Page.enable(); |
+ session.evaluate(` |
+ var frame = document.createElement('iframe'); |
+ frame.src = '${testRunner.url('../resources/blank.html')}'; |
+ document.body.appendChild(frame); |
+ `); |
+ await dp.Page.onceFrameStartedLoading(); |
+ testRunner.log('Started loading'); |
+ await dp.Page.onceFrameStoppedLoading(); |
+ testRunner.log('Stopped loading'); |
+ testRunner.completeTest(); |
+}) |