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> |