Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / shadow / rightclick-on-meter-in-shadow-crash.html
blobafea02fa1196ac4e82b8657590938e14242debe0
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>
7 <script>
8 if (window.testRunner)
9 testRunner.dumpAsText();
11 function contextClick(x, y) {
12 eventSender.mouseMoveTo(x, y);
13 eventSender.contextClick();
16 var container = document.getElementById('container');
17 var shadowRoot = container.createShadowRoot();
18 var meter = document.createElement('meter');
19 shadowRoot.appendChild(meter);
21 // Do context click at various points.
22 contextClick(meter.offsetLeft, meter.offsetTop);
23 contextClick(meter.offsetLeft - 1, meter.offsetTop);
24 contextClick(meter.offsetLeft, meter.offsetTop - 1);
25 contextClick(meter.offsetLeft - 1, meter.offsetTop - 1);
26 contextClick(meter.offsetLeft + 1, meter.offsetTop);
27 contextClick(meter.offsetLeft, meter.offsetTop + 1);
28 contextClick(meter.offsetLeft + 1, meter.offsetTop + 1);
29 contextClick(meter.offsetLeft + meter.offsetWidth / 2, meter.offsetTop + meter.offsetHeight / 2);
30 contextClick(meter.offsetLeft + meter.offsetWidth - 1, meter.offsetTop + meter.offsetHeight - 1);
31 contextClick(meter.offsetLeft + meter.offsetWidth + 1, meter.offsetTop + meter.offsetHeight + 1);
32 </script>
33 </body>
34 </html>