Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / shadow / doubleclick-on-meter-in-shadow-crash.html
blob5a09262dbdfa8ef3d014f6ce0e4deb8e52aa1de3
1 <!DOCTYPE html>
2 <html>
3 <p>This test ensures context click around meter won't crash.</p>
4 <div id='container' style="width:100px; height: 100px"></div>
5 <p>PASS</p>
6 <script src="../editing.js"></script>
7 <script>
8 if (window.testRunner)
9 testRunner.dumpAsText();
11 var container = document.getElementById('container');
12 var shadowRoot = container.createShadowRoot();
13 var meter = document.createElement('meter');
14 shadowRoot.appendChild(meter);
16 // Do doubleclick at various points.
17 doubleClick(meter.offsetLeft, meter.offsetTop);
18 doubleClick(meter.offsetLeft - 1, meter.offsetTop);
19 doubleClick(meter.offsetLeft, meter.offsetTop - 1);
20 doubleClick(meter.offsetLeft - 1, meter.offsetTop - 1);
21 doubleClick(meter.offsetLeft + 1, meter.offsetTop);
22 doubleClick(meter.offsetLeft, meter.offsetTop + 1);
23 doubleClick(meter.offsetLeft + 1, meter.offsetTop + 1);
24 doubleClick(meter.offsetLeft + meter.offsetWidth / 2, meter.offsetTop + meter.offsetHeight / 2);
25 doubleClick(meter.offsetLeft + meter.offsetWidth - 1, meter.offsetTop + meter.offsetHeight - 1);
26 doubleClick(meter.offsetLeft + meter.offsetWidth + 1, meter.offsetTop + meter.offsetHeight + 1);
27 </script>
28 </body>
29 </html>