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

Unified Diff: third_party/WebKit/LayoutTests/inspector/coverage/gutter-html.html

Issue 2861393004: DevTools/Coverage: fix decorations in HTML (Closed)
Patch Set: reverted toFixedIfFloating() changes 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/gutter-html.html
diff --git a/third_party/WebKit/LayoutTests/inspector/coverage/gutter-html.html b/third_party/WebKit/LayoutTests/inspector/coverage/gutter-html.html
new file mode 100644
index 0000000000000000000000000000000000000000..3ea6cf06c4571726d76d9992fe83fd74db38bd0b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector/coverage/gutter-html.html
@@ -0,0 +1,66 @@
+<html>
+<head>
+<script src="../../http/tests/inspector/inspector-test.js"></script>
+<script src="../../http/tests/inspector/debugger-test.js"></script>
+<script src="coverage-test.js"></script>
+
+<script>
+function used1() {
+ window.a += 4;
+}
+
+function unused1() {
+ window.a += 1;
+}
+</script>
+
+<script>
+function unused2() {
+ window.a += 0.5;
+}
+
+function used2() {
+ window.a += 4;
+}
+</script>
+
+<style>
+.used {
+ color: black;
+}
+
+.notUsed {
+ color: red;
+}
+</style>
+
+<style>
+#not-used {
+ color: red;
+}
+
+#also-used {
+ color: black;
+}
+</style>
+
+<script>
+function performActions() {
+ used1();
+ used2();
+}
+
+async function test()
+{
+ InspectorTest.startCoverage();
+ await InspectorTest.evaluateInPagePromise("performActions()");
+ await InspectorTest.stopCoverage();
+ await InspectorTest.dumpDecorations("gutter-html.html");
+ InspectorTest.completeTest();
+}
+</script>
+</head>
+<body onload="runTest()">
+<p class="used" id="also-used">Tests the coverage highlight in sources after the recording finishes.</p>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698