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

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

Powered by Google App Engine
This is Rietveld 408576698