OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 | 3 |
4 <link rel="stylesheet" href="resources/bezier.css"> | 4 <link rel="stylesheet" href="resources/bezier.css"> |
5 | 5 |
6 <script src="../../http/tests/inspector/inspector-test.js"></script> | 6 <script src="../../http/tests/inspector/inspector-test.js"></script> |
7 <script src="../../http/tests/inspector/debugger-test.js"></script> | 7 <script src="../../http/tests/inspector/debugger-test.js"></script> |
8 <script src="../../http/tests/inspector/sources-test.js"></script> | 8 <script src="../../http/tests/inspector/sources-test.js"></script> |
9 <script> | 9 <script> |
10 function test() | 10 function test() |
(...skipping 12 matching lines...) Expand all Loading... |
23 swatch.shadowRoot.querySelector(".bezier-swatch-icon").click(); | 23 swatch.shadowRoot.querySelector(".bezier-swatch-icon").click(); |
24 sourceFrame._bezierEditor.setBezier(UI.Geometry.CubicBezier.pars
e("linear")); | 24 sourceFrame._bezierEditor.setBezier(UI.Geometry.CubicBezier.pars
e("linear")); |
25 sourceFrame._bezierEditor._onchange(); | 25 sourceFrame._bezierEditor._onchange(); |
26 sourceFrame._swatchPopoverHelper.hide(true) | 26 sourceFrame._swatchPopoverHelper.hide(true) |
27 InspectorTest.dumpSwatchPositions(sourceFrame, Sources.CSSSource
Frame.SwatchBookmark); | 27 InspectorTest.dumpSwatchPositions(sourceFrame, Sources.CSSSource
Frame.SwatchBookmark); |
28 next(); | 28 next(); |
29 }, | 29 }, |
30 | 30 |
31 function testAddBezier(next) | 31 function testAddBezier(next) |
32 { | 32 { |
33 var bodyLineEnd = new Common.TextRange(1, 37, 1, 37); | 33 var bodyLineEnd = new TextUtils.TextRange(1, 37, 1, 37); |
34 sourceFrame.textEditor.editRange(bodyLineEnd, " transition: heig
ht 1s cubic-bezier(0, 0.5, 1, 1);"); | 34 sourceFrame.textEditor.editRange(bodyLineEnd, " transition: heig
ht 1s cubic-bezier(0, 0.5, 1, 1);"); |
35 InspectorTest.dumpSwatchPositions(sourceFrame, Sources.CSSSource
Frame.SwatchBookmark); | 35 InspectorTest.dumpSwatchPositions(sourceFrame, Sources.CSSSource
Frame.SwatchBookmark); |
36 next(); | 36 next(); |
37 }, | 37 }, |
38 | 38 |
39 function testInvalidateBezier(next) | 39 function testInvalidateBezier(next) |
40 { | 40 { |
41 var startParenthesis = new Common.TextRange(1, 67, 1, 68); | 41 var startParenthesis = new TextUtils.TextRange(1, 67, 1, 68); |
42 sourceFrame.textEditor.editRange(startParenthesis, "["); | 42 sourceFrame.textEditor.editRange(startParenthesis, "["); |
43 InspectorTest.dumpSwatchPositions(sourceFrame, Sources.CSSSource
Frame.SwatchBookmark); | 43 InspectorTest.dumpSwatchPositions(sourceFrame, Sources.CSSSource
Frame.SwatchBookmark); |
44 next(); | 44 next(); |
45 } | 45 } |
46 ]); | 46 ]); |
47 } | 47 } |
48 } | 48 } |
49 </script> | 49 </script> |
50 </head> | 50 </head> |
51 | 51 |
52 <body onload="runTest()"> | 52 <body onload="runTest()"> |
53 <p> | 53 <p> |
54 Tests that bezier swatches are updated properly in CSS Sources. | 54 Tests that bezier swatches are updated properly in CSS Sources. |
55 </p> | 55 </p> |
56 </body> | 56 </body> |
57 </html> | 57 </html> |
OLD | NEW |