Changeset 166673 in webkit
- Timestamp:
- Apr 2, 2014 4:06:36 PM (10 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r166671 r166673 1 2014-04-02 Zoltan Horvath <zoltan@webkit.org> 2 3 [WebInspector] inspector-protocol/model/highlight-shape-outside.html is failing 4 https://bugs.webkit.org/show_bug.cgi?id=124660 5 6 Reviewed by Timothy Hatcher. 7 8 I updated the tests syntax to CR, CSS Shapes specification. It's also needed to be updated 9 to the latest WebInspector testing methods. I added some addidional test cases for the highlighting, 10 and also fixed some expected test case in the script, and updated the expected file. 11 12 * TestExpectations: 13 * inspector/dom/highlight-shape-outside-expected.txt: 14 * inspector/dom/highlight-shape-outside.html: 15 * inspector/dom/shapes-test.js: 16 (InspectorTestProxy.registerInitializer.): 17 1 18 2014-04-02 Chris Fleizach <cfleizach@apple.com> 2 19 -
trunk/LayoutTests/TestExpectations
r166353 r166673 50 50 fast/mediastream/MediaStream-clone.html [ Skip ] 51 51 52 webkit.org/b/124660 inspector/dom/highlight-shape-outside.html [ Failure ]53 52 webkit.org/b/126519 inspector/dom/highlight-shape-outside-margin.html [ Failure ] 54 53 -
trunk/LayoutTests/inspector/dom/highlight-shape-outside-expected.txt
r165501 r166673 1 PASS: Actual [M 50 50 L 150 50 L 150 100 L 50 100 L 50 50 Z] Expected [M 50 50 L 150 50 L 150 100 L 50 100 L 50 50 Z] 2 PASS: Actual [M 50 50 L 100 50 L 100 100 L 50 100 Z] Expected [M 50 50 L 100 50 L 100 100 L 50 100 Z] 3 PASS: Actual [M 75 75 L 175 75 L 175 125 L 75 125 L 75 75 Z] Expected [M 75 75 L 175 75 L 175 125 L 75 125 L 75 75 Z] 4 PASS: Actual [M 50 50 L 150 50 L 150 100 L 50 100 L 50 50 Z] Expected [M 50 50 L 150 50 L 150 100 L 50 100 L 50 50 Z] 5 PASS: Actual [M 50 50 L 50 100 L 150 100 L 150 50 L 50 50 Z] Expected [M 50 50 L 50 100 L 150 100 L 150 50 L 50 50 Z] 6 PASS: Actual [M 150 50 L 150 100 L 50 100 L 50 50 L 150 50 Z] Expected [M 150 50 L 150 100 L 50 100 L 50 50 L 150 50 Z] 7 PASS: Actual [M 175 75 L 175 125 L 75 125 L 75 75 L 175 75 Z] Expected [M 175 75 L 175 125 L 75 125 L 75 75 L 175 75 Z] 8 PASS: Actual [M 150 50 L 150 100 L 50 100 L 50 50 L 150 50 Z] Expected [M 150 50 L 150 100 L 50 100 L 50 50 L 150 50 Z] 9 PASS: Actual [M 25 25 L 125 25 L 125 125 L 25 125 L 25 25 Z] Expected [M 25 25 L 125 25 L 125 125 L 25 125 L 25 25 Z] 10 PASS: Actual [M 50 50 L 100 50 L 100 100 L 50 100 Z] Expected [M 50 50 L 100 50 L 100 100 L 50 100 Z] 11 PASS: Actual [M 35 35 L 115 35 L 115 65 L 35 65 Z M 35 85 L 115 85 L 115 115 L 35 115 Z] Expected [M 35 35 L 115 35 L 115 65 L 35 65 Z M 35 85 L 115 85 L 115 115 L 35 115 Z] 12 PASS: Actual [M 50 50 L 100 50 L 100 100 L 50 100 Z] Expected [M 50 50 L 100 50 L 100 100 L 50 100 Z] 1 PASS: .inset 2 PASS: .inset.padded 3 PASS: .inset.padded.border-box 4 PASS: .polygon 5 PASS: .polygon.padded.border-box 6 PASS: .vertical-lr > .inset 7 PASS: .vertical-lr > .inset.padded 8 PASS: .vertical-lr > .inset.padded.border-box 9 PASS: .vertical-rl > .inset 10 PASS: .vertical-rl > .inset.padded 11 PASS: .vertical-rl > .inset.padded.border-box 12 PASS: .content-box.padded 13 PASS: .raster-svg.padded 14 PASS: .raster-svg-complex.padded 15 PASS: .raster-png.padded 13 16 -
trunk/LayoutTests/inspector/dom/highlight-shape-outside.html
r165501 r166673 10 10 height: 200px; 11 11 margin-right: -200px; 12 box-sizing: border-box; 12 13 } 13 14 .padded { 14 width: 100px;15 height: 100px;16 15 padding: 25px 75px 75px 25px; 17 16 } 18 . border-box{19 box-sizing: border-box;17 .vertical-lr, .vertical-rl { 18 float: left; 20 19 } 21 20 .vertical-lr { … … 25 24 -webkit-writing-mode: vertical-rl; 26 25 } 27 . rectangle{28 -webkit-shape-outside: rectangle(50px, 50px, 100px,50px) content-box;26 .inset { 27 -webkit-shape-outside: inset(50px 50px 100px 50px) content-box; 29 28 } 30 .rectangle.border-box { 31 -webkit-shape-outside: rectangle(50px, 50px, 100px, 50px) border-box; 29 .inset.padded { 30 -webkit-shape-outside: inset(5px 5px 10px 5px) content-box; 31 } 32 .inset.padded.border-box { 33 -webkit-shape-outside: inset(50px 50px 100px 50px) border-box; 32 34 } 33 35 .polygon { 34 -webkit-shape-outside: polygon(50px 50px, 1 00px 50px, 100px 100px, 50px 100px) content-box;36 -webkit-shape-outside: polygon(50px 50px, 150px 50px, 150px 100px, 50px 100px) content-box; 35 37 } 36 38 .polygon.border-box { 37 -webkit-shape-outside: polygon(50px 50px, 1 00px 50px, 100px 100px, 50px 100px) border-box;39 -webkit-shape-outside: polygon(50px 50px, 150px 50px, 150px 100px, 50px 100px) border-box; 38 40 } 39 41 .content-box { … … 57 59 var testcases = [ 58 60 { 59 'selector' : '.rectangle', 61 'selector' : '.inset', 62 'path' : ['M', 50, 50, 'L', 150, 50, 'L', 150, 100, 'L', 50, 100, 'L', 50, 50, 'Z'] 63 }, 64 { 65 'selector' : '.inset.padded', 66 'path' : ['M', 30, 30, 'L', 120, 30, 'L', 120, 115, 'L', 30, 115, 'L', 30, 30, 'Z'] 67 }, 68 { 69 'selector' : '.inset.padded.border-box', 60 70 'path' : ['M', 50, 50, 'L', 150, 50, 'L', 150, 100, 'L', 50, 100, 'L', 50, 50, 'Z'] 61 71 }, 62 72 { 63 73 'selector' : '.polygon', 64 'path' : ['M', 50, 50, 'L', 1 00, 50, 'L', 100, 100, 'L', 50, 100, 'Z']74 'path' : ['M', 50, 50, 'L', 150, 50, 'L', 150, 100, 'L', 50, 100, 'Z'] 65 75 }, 66 76 { 67 'selector' : '.rectangle.padded', 68 'path' : ['M', 75, 75, 'L', 175, 75, 'L', 175, 125, 'L', 75, 125, 'L', 75, 75, 'Z'] 69 }, 70 { 71 'selector' : '.rectangle.padded.border-box', 77 'selector' : '.polygon.padded.border-box', 72 78 'path' : ['M', 50, 50, 'L', 150, 50, 'L', 150, 100, 'L', 50, 100, 'L', 50, 50, 'Z'] 73 79 }, 74 80 { 75 'selector' : '.vertical-lr > . rectangle',81 'selector' : '.vertical-lr > .inset', 76 82 'path' : ['M', 50, 50, 'L', 50, 100, 'L', 150, 100, 'L', 150, 50, 'L', 50, 50, 'Z'] 77 83 }, 78 84 { 79 'selector' : '.vertical-rl > .rectangle', 85 'selector' : '.vertical-lr > .inset.padded', 86 'path' : ['M', 30, 30, 'L', 30, 115, 'L', 120, 115, 'L', 120, 30, 'L', 30, 30, 'Z'] 87 }, 88 { 89 'selector' : '.vertical-lr > .inset.padded.border-box', 90 'path' : ['M', 50, 50, 'L', 50, 100, 'L', 150, 100, 'L', 150, 50, 'L', 50, 50, 'Z'] 91 }, 92 { 93 'selector' : '.vertical-rl > .inset', 80 94 'path' : ['M', 150, 50, 'L', 150, 100, 'L', 50, 100, 'L', 50, 50, 'L', 150, 50, 'Z'] 81 95 }, 82 96 { 83 'selector' : '.vertical-rl > . rectangle.padded',84 'path' : ['M', 1 75, 75, 'L', 175, 125, 'L', 75, 125, 'L', 75, 75, 'L', 175, 75, 'Z']97 'selector' : '.vertical-rl > .inset.padded', 98 'path' : ['M', 120, 30, 'L', 120, 115, 'L', 30, 115, 'L', 30, 30, 'L', 120, 30, 'Z'] 85 99 }, 86 100 { 87 'selector' : '.vertical-rl > . rectangle.padded.border-box',101 'selector' : '.vertical-rl > .inset.padded.border-box', 88 102 'path' : ['M', 150, 50, 'L', 150, 100, 'L', 50, 100, 'L', 50, 50, 'L', 150, 50, 'Z'] 89 103 }, … … 109 123 var testcase = tests[0]; 110 124 111 InspectorTest.Shapes.getShapeOutsideInfo (testcase.selector, function(payload) {112 InspectorTest.Shapes.assertPathsAreRoughlyEqual(payload.shape, testcase.shape, "Shape information was not roughly equal.");113 InspectorTest.Shapes.assertPathsAreRoughlyEqual(payload.marginShape, testcase.marginShape, "Margin shape information was not roughly equal.");125 InspectorTest.Shapes.getShapeOutsideInfoForSelector(testcase.selector, function(payload) { 126 if (!InspectorTest.Shapes.assertPathsAreRoughlyEqual(payload.shape, testcase.path, "Selector: \'" + testcase.selector + "\' Shape information was not roughly equal.")) 127 InspectorTest.log("PASS: " + testcase.selector); 114 128 115 129 if (tests.length > 1) … … 125 139 </head> 126 140 <body onload="runTest()"> 127 <div class='shape rectangle'></div> 141 <div class='shape inset'></div> 142 <div class='shape padded inset'></div> 143 <div class='shape padded inset border-box'></div> 128 144 <div class='shape polygon'></div> 129 <div class='shape padded rectangle'></div> 130 <div class='shape padded rectangle border-box'></div> 145 <div class='shape padded polygon border-box'></div> 131 146 <div class='vertical-lr'> 132 <div class='shape rectangle'></div> 147 <div class='shape inset'></div> 148 <div class='shape padded inset'></div> 149 <div class='shape padded inset border-box'></div> 133 150 </div> 134 151 <div class='vertical-rl'> 135 <div class='shape rectangle'></div>136 <div class='shape padded rectangle'></div>137 <div class='shape padded rectangleborder-box'></div>152 <div class='shape inset'></div> 153 <div class='shape padded inset'></div> 154 <div class='shape padded inset border-box'></div> 138 155 </div> 139 156 <div class='shape padded content-box'></div> -
trunk/LayoutTests/inspector/dom/shapes-test.js
r165501 r166673 8 8 function requestDocumentCallback(node) { 9 9 InspectorTest.assert(node instanceof WebInspector.DOMNode, "Unexpected argument to requestDocument callback.") 10 11 10 DOMAgent.querySelector.invoke({nodeId: node.id, selector: selector}, querySelectorCallback); 12 11 } … … 85 84 var expectedPathString = makeStringForPath(expected); 86 85 var actualPathString = makeStringForPath(actual); 87 var assertionMessage = message + " \n expected: " + expectedPathString + "\n actual: " + actualPathString;86 var assertionMessage = message + " \nEXPECTED: " + expectedPathString + "\n ACTUAL: " + actualPathString; 88 87 InspectorTest.assert(pathsAreRoughlyEqual(actual, expected), assertionMessage); 89 88 }
Note: See TracChangeset
for help on using the changeset viewer.