Editing tests should use testRunner instead of layoutTestController
[WebKit-https.git] / LayoutTests / platform / mac / editing / deleting / deletionUI-minimum-size.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4     <style type="text/css">
5         div {border:1px solid red}
6         #smallWidth {width:10; height:251}
7         #smallHeight {width:251; height:10}
8         #smallWidthSmallHeight {width:10; height:10}
9         #sufficientWidthAndHeight {width:51; height:51}
10     </style>
11     <script src="resources/deletionUI-helpers.js"></script>
12     <script>
13         function test()
14         {
15             if (window.testRunner)
16                 testRunner.dumpAsText();
17
18             determineDeletionUIExistence("smallWidth");
19             determineDeletionUIExistence("smallHeight");
20             determineDeletionUIExistence("smallWidthSmallHeight");
21             determineDeletionUIExistence("sufficientWidthAndHeight");
22         }
23     </script>
24 </head>
25 <body onload="test()">
26     <p>This tests if the deletion UI will show on elements with different sizes. This test can be run by DRT but not in the browser.</p>
27     <div id="console"></div>
28
29     <div contenteditable="true" style="padding: 1em;">
30         <div id="smallWidth" class="needsDeletionUI"><br></div>
31         <div id="smallHeight" class="needsDeletionUI"><br></div>
32         <div id="smallWidthSmallHeight" class="needsDeletionUI"><br></div>
33         <div id="sufficientWidthAndHeight" class="needsDeletionUI"><br></div>
34     <div>
35
36 </body>
37 </html>