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

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

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-expected.txt
diff --git a/third_party/WebKit/LayoutTests/inspector/coverage/gutter-html-expected.txt b/third_party/WebKit/LayoutTests/inspector/coverage/gutter-html-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..277fa1cc967c0bb7eab74fa2f58037214dc6440f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector/coverage/gutter-html-expected.txt
@@ -0,0 +1,69 @@
+Tests the coverage highlight in sources after the recording finishes.
+
+0: <html>
+1: <head>
+2: <script src="../../http/tests/inspector/inspector-test.js"></script>
+3: <script src="../../http/tests/inspector/debugger-test.js"></script>
+4: <script src="coverage-test.js"></script>
+5:
+6: <script>
+7: + function used1() {
+8: + window.a += 4;
+9: + }
+10:
+11: - function unused1() {
+12: - window.a += 1;
+13: - }
+14: </script>
+15:
+16: <script>
+17: - function unused2() {
+18: - window.a += 0.5;
+19: - }
+20:
+21: + function used2() {
+22: + window.a += 4;
+23: + }
+24: </script>
+25:
+26: <style>
+27: + .used {
+28: + color: black;
+29: + }
+30:
+31: - .notUsed {
+32: - color: red;
+33: - }
+34: </style>
+35:
+36: <style>
+37: - #not-used {
+38: - color: red;
+39: - }
+40:
+41: + #also-used {
+42: + color: black;
+43: + }
+44: </style>
+45:
+46: <script>
+47: + function performActions() {
+48: + used1();
+49: + used2();
+50: + }
+51:
+52: - async function test()
+53: - {
+54: - InspectorTest.startCoverage();
+55: - await InspectorTest.evaluateInPagePromise("performActions()");
+56: - await InspectorTest.stopCoverage();
+57: - await InspectorTest.dumpDecorations("gutter-html.html");
+58: - InspectorTest.completeTest();
+59: - }
+60: </script>
+61: </head>
+62: <body onload="runTest()">
+63: <p class="used" id="also-used">Tests the coverage highlight in sources after the recording finishes.</p>
+64: </body>
+65: </html>
+

Powered by Google App Engine
This is Rietveld 408576698