3 <p>This test ensures context click around meter won't crash.
</p>
4 <div id='container'
style=
"width:100px; height: 100px"></div>
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);