Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Unified Diff: third_party/WebKit/LayoutTests/inspector/coverage/decorations-after-inplace-formatter.html

Issue 2865573003: DevTools: support live coverage (Closed)
Patch Set: minor polish on corner cases Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/inspector/coverage/decorations-after-inplace-formatter.html
diff --git a/third_party/WebKit/LayoutTests/inspector/coverage/decorations-after-inplace-formatter.html b/third_party/WebKit/LayoutTests/inspector/coverage/decorations-after-inplace-formatter.html
deleted file mode 100644
index 21ac8a47c605d343a24a1c0ef8c73a9a4535d895..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector/coverage/decorations-after-inplace-formatter.html
+++ /dev/null
@@ -1,41 +0,0 @@
-<html>
-<head>
-<script src="../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../http/tests/inspector/debugger-test.js"></script>
-<script src="../../http/tests/inspector/sources-test.js"></script>
-<script src="coverage-test.js"></script>
-
-<link rel="stylesheet" type="text/css" href="resources/decorations-after-inplace-formatter.css">
-
-<script>
-async function test()
-{
- InspectorTest.startCoverage();
- await InspectorTest.evaluateInPagePromise("performActions()");
- await InspectorTest.stopCoverage();
- await UI.inspectorView.showPanel("sources");
- var formatter = await inplaceFormatter();
- var sourceFrame = await InspectorTest.sourceDecorated("decorations-after-inplace-formatter.css");
- var decoratorPromise = InspectorTest.addSnifferPromise(Coverage.CoverageView.LineDecorator.prototype, "decorate");
- formatter._formatSourceInPlace();
- await decoratorPromise;
-
- InspectorTest.dumpDecorationsInSourceFrame(sourceFrame);
- InspectorTest.completeTest();
-
- async function inplaceFormatter()
- {
- var editorActions = await self.runtime.allInstances(Sources.SourcesView.EditorAction);
- for (var i = 0; i < editorActions.length; ++i) {
- if (editorActions[i] instanceof Sources.InplaceFormatterEditorAction)
- return editorActions[i];
- }
- }
-}
-</script>
-</head>
-<p id="id">PASS</p>
-<body onload="runTest()">
-<p>Tests the CSS highlight in sources after the Pretty print formatting.</p>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698