| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script> | 4 <script> |
| 5 | 5 |
| 6 function createDynamicElements() | 6 function createDynamicElements() |
| 7 { | 7 { |
| 8 var frameDoc = window.frames[0].document; | 8 var frameDoc = window.frames[0].document; |
| 9 | 9 |
| 10 var el = frameDoc.createElement("article"); | 10 var el = frameDoc.createElement("article"); |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 if (event.data.name !== "tmpNamedFlow") | 169 if (event.data.name !== "tmpNamedFlow") |
| 170 return; | 170 return; |
| 171 | 171 |
| 172 WebInspector.cssModel.removeEventListener(WebInspector.CSSStyleM
odel.Events.NamedFlowCreated, callback, this); | 172 WebInspector.cssModel.removeEventListener(WebInspector.CSSStyleM
odel.Events.NamedFlowCreated, callback, this); |
| 173 | 173 |
| 174 InspectorTest.addResult("NamedFlowCreated: \"tmpNamedFlow\""); | 174 InspectorTest.addResult("NamedFlowCreated: \"tmpNamedFlow\""); |
| 175 next(); | 175 next(); |
| 176 } | 176 } |
| 177 }, | 177 }, |
| 178 | 178 |
| 179 function testRegionLayoutUpdated(next) | 179 function testRegionOversetChanged(next) |
| 180 { | 180 { |
| 181 WebInspector.cssModel.addEventListener(WebInspector.CSSStyleModel.Ev
ents.RegionLayoutUpdated, callback, this); | 181 WebInspector.cssModel.addEventListener(WebInspector.CSSStyleModel.Ev
ents.RegionOversetChanged, callback, this); |
| 182 InspectorTest.evaluateInPage("window.document.getElementById(\"regio
n3\").style[\"width\"] = \"200px\""); | 182 InspectorTest.evaluateInPage("window.document.getElementById(\"regio
n3\").style.webkitFlowFrom=\"flow3\""); |
| 183 | 183 |
| 184 function callback(event) | 184 function callback(event) |
| 185 { | 185 { |
| 186 if (event.data.name !== "flow3") | 186 if (event.data.name !== "flow3") |
| 187 return; | 187 return; |
| 188 | 188 |
| 189 WebInspector.cssModel.removeEventListener(WebInspector.CSSStyleM
odel.Events.RegionLayoutUpdated, callback, this); | 189 WebInspector.cssModel.removeEventListener(WebInspector.CSSStyleM
odel.Events.RegionOversetChanged, callback, this); |
| 190 | 190 |
| 191 InspectorTest.addResult("RegionLayoutUpdated: \"flow3\""); | 191 InspectorTest.addResult("RegionOversetChanged: \"flow3\""); |
| 192 next(); | 192 next(); |
| 193 } | 193 } |
| 194 }, | 194 }, |
| 195 | 195 |
| 196 function testNamedFlowRemoved(next) | 196 function testNamedFlowRemoved(next) |
| 197 { | 197 { |
| 198 WebInspector.cssModel.addEventListener(WebInspector.CSSStyleModel.Ev
ents.NamedFlowRemoved, callback, this); | 198 WebInspector.cssModel.addEventListener(WebInspector.CSSStyleModel.Ev
ents.NamedFlowRemoved, callback, this); |
| 199 InspectorTest.evaluateInPage("removeNamedFlow()"); | 199 InspectorTest.evaluateInPage("removeNamedFlow()"); |
| 200 | 200 |
| 201 function callback(event) | 201 function callback(event) |
| (...skipping 20 matching lines...) Expand all Loading... |
| 222 </head> | 222 </head> |
| 223 | 223 |
| 224 <body onload="createDynamicElements()"> | 224 <body onload="createDynamicElements()"> |
| 225 <p> | 225 <p> |
| 226 Tests the following commands and events: | 226 Tests the following commands and events: |
| 227 <ul> | 227 <ul> |
| 228 <li>getNamedFlowCollection <a href="https://bugs.webkit.org/show_bug.cgi?id=
91607">Bug 91607</a></li> | 228 <li>getNamedFlowCollection <a href="https://bugs.webkit.org/show_bug.cgi?id=
91607">Bug 91607</a></li> |
| 229 <li>getFlowByName <a href="https://bugs.webkit.org/show_bug.cgi?id=91855">Bu
g 91855</a></li> | 229 <li>getFlowByName <a href="https://bugs.webkit.org/show_bug.cgi?id=91855">Bu
g 91855</a></li> |
| 230 <li>namedFlowCreated <a href="https://bugs.webkit.org/show_bug.cgi?id=92739"
>Bug 92739</a></li> | 230 <li>namedFlowCreated <a href="https://bugs.webkit.org/show_bug.cgi?id=92739"
>Bug 92739</a></li> |
| 231 <li>namedFlowRemoved <a href="https://bugs.webkit.org/show_bug.cgi?id=92739"
>Bug 92739</a></li> | 231 <li>namedFlowRemoved <a href="https://bugs.webkit.org/show_bug.cgi?id=92739"
>Bug 92739</a></li> |
| 232 <li>regionLayoutUpdated <a href="https://bugs.webkit.org/show_bug.cgi?id=934
43">Bug 93443</a></li> | 232 <li>regionOversetChanged <a href="https://code.google.com/p/chromium/issues/
detail?id=252250">Bug 252250</a></li> |
| 233 </ul> | 233 </ul> |
| 234 </p> | 234 </p> |
| 235 | 235 |
| 236 <article style="-webkit-flow-into: flow1"></article> | 236 <article style="-webkit-flow-into: flow1"></article> |
| 237 <div style="-webkit-flow-from: flow1"></div> | 237 <div style="-webkit-flow-from: flow1"></div> |
| 238 <div style="-webkit-flow-from: flow1"></div> | 238 <div style="-webkit-flow-from: flow1"></div> |
| 239 <div style="-webkit-flow-from: flow1"></div> | 239 <div style="-webkit-flow-from: flow1"></div> |
| 240 | 240 |
| 241 <article style="-webkit-flow-into: flow2"></article> | 241 <article style="-webkit-flow-into: flow2"></article> |
| 242 <div style="-webkit-flow-from: flow2"></div> | 242 <div style="-webkit-flow-from: flow2"></div> |
| 243 <div style="-webkit-flow-from: flow2"></div> | 243 <div style="-webkit-flow-from: flow2"></div> |
| 244 | 244 |
| 245 <article style="-webkit-flow-into: flow3"> | 245 <article style="-webkit-flow-into: flow3"> |
| 246 This text is from CSS Named Flow "flow3". | 246 This text is from CSS Named Flow "flow3". |
| 247 </article> | 247 </article> |
| 248 <div id="region3" style="-webkit-flow-from: flow3; height: 20px; width: 5px"></d
iv> | 248 <div id="region3" style="-webkit-flow-from: none; height: 20px; width: 5px"></di
v> |
| 249 | 249 |
| 250 <div id="fake-document"></div> | 250 <div id="fake-document"></div> |
| 251 | 251 |
| 252 <iframe></iframe> | 252 <iframe></iframe> |
| 253 | 253 |
| 254 </body> | 254 </body> |
| 255 </html> | 255 </html> |
| OLD | NEW |