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