Index: third_party/WebKit/LayoutTests/inspector-protocol/stylesheet-tracking-restart.js |
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/stylesheet-tracking-restart.js b/third_party/WebKit/LayoutTests/inspector-protocol/stylesheet-tracking-restart.js |
index 47916fadbc2a0ffb04a70b89b33891cd9d9257a4..5ca5a04095da47e2465dccbe7c5a81f0fc59e49b 100644 |
--- a/third_party/WebKit/LayoutTests/inspector-protocol/stylesheet-tracking-restart.js |
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/stylesheet-tracking-restart.js |
@@ -18,7 +18,7 @@ |
await runTest(session); |
testRunner.log('Closing inspector.'); |
testRunner.log('\nRemoving style sheet.\n'); |
- session.evaluate('setTimeout(() => document.head.removeChild(styleElement1), 0)'); |
+ session.evaluate('setTimeout(() => { document.head.removeChild(styleElement1); document.body.offsetWidth; }, 0)'); |
await session.disconnect(); |
testRunner.log('Reopening inspector.'); |
session = await page.createSession(); |