Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../../resources/js-test.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
| 5 <script src="../../forms/resources/common.js"></script> | 5 <script src="../../forms/resources/common.js"></script> |
| 6 <script src="../../forms/resources/picker-common.js"></script> | 6 <script src="../../forms/resources/picker-common.js"></script> |
| 7 <script src="../calendar-picker/resources/calendar-picker-common.js"></script> | 7 <script src="../calendar-picker/resources/calendar-picker-common.js"></script> |
|
Inactive
2014/04/18 21:08:40
The test is basically testing this library (which
| |
| 8 </head> | 8 </head> |
| 9 <body> | 9 <body> |
| 10 <p id="description"></p> | 10 <p id="description"></p> |
| 11 <div id="console"></div> | 11 <div id="console"></div> |
| 12 | 12 |
| 13 <input type="date" id="date"> | 13 <input type="date" id="date"> |
| 14 | 14 |
| 15 <script> | 15 <script> |
| 16 description('Test for child elements of a datalist element.'); | 16 description('Test for child elements of a datalist element.'); |
| 17 | 17 |
| 18 openPicker(document.getElementById('date'), test); | 18 openPicker(document.getElementById('date'), test); |
| 19 | 19 |
| 20 function makeRect(x, y, width, height) { | 20 function makeRect(x, y, width, height) { |
| 21 return { | 21 return { |
| 22 x: x, | 22 x: x, |
| 23 y: y, | 23 y: y, |
| 24 width: width, | 24 width: width, |
| 25 height: height | 25 height: height |
| 26 }; | 26 }; |
| 27 } | 27 } |
| 28 | 28 |
| 29 function test() { | 29 function test() { |
| 30 popupWindow.screen = { | 30 internals.setOverrideScreenData({ |
|
Inactive
2014/04/18 21:08:40
This test was added in https://bugs.webkit.org/sho
| |
| 31 width: 80, | 31 "width": 80, |
| 32 height: 60, | 32 "height": 60, |
| 33 availLeft: 0, | 33 "availLeft": 0, |
| 34 availTop: 0, | 34 "availTop": 0, |
| 35 availWidth: 80, | 35 "availWidth": 80, |
| 36 availHeight: 60, | 36 "availHeight": 60, |
| 37 }; | 37 }); |
| 38 | 38 |
| 39 debug("Move anchor element along the vertical axis."); | 39 debug("Move anchor element along the vertical axis."); |
| 40 | 40 |
| 41 popupWindow.global.params.anchorRectInScreen = makeRect(0, -20, 20, 10); | 41 popupWindow.global.params.anchorRectInScreen = makeRect(0, -20, 20, 10); |
| 42 shouldBeEqualToString('popupWindow.adjustWindowRect(30, 10, 30, 10).toString ()', 'Rectangle(0,0,30,10)'); | 42 shouldBeEqualToString('popupWindow.adjustWindowRect(30, 10, 30, 10).toString ()', 'Rectangle(0,0,30,10)'); |
| 43 | 43 |
| 44 popupWindow.global.params.anchorRectInScreen = makeRect(0, -10, 20, 10); | 44 popupWindow.global.params.anchorRectInScreen = makeRect(0, -10, 20, 10); |
| 45 shouldBeEqualToString('popupWindow.adjustWindowRect(30, 10, 30, 10).toString ()', 'Rectangle(0,0,30,10)'); | 45 shouldBeEqualToString('popupWindow.adjustWindowRect(30, 10, 30, 10).toString ()', 'Rectangle(0,0,30,10)'); |
| 46 | 46 |
| 47 popupWindow.global.params.anchorRectInScreen = makeRect(0, 0, 20, 10); | 47 popupWindow.global.params.anchorRectInScreen = makeRect(0, 0, 20, 10); |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 210 | 210 |
| 211 popupWindow.global.params.anchorRectInScreen = makeRect(30, 0, 30, 10); | 211 popupWindow.global.params.anchorRectInScreen = makeRect(30, 0, 30, 10); |
| 212 shouldBeEqualToString('popupWindow.adjustWindowRect(90, 10, 90, 10).toString ()', 'Rectangle(0,10,90,10)'); | 212 shouldBeEqualToString('popupWindow.adjustWindowRect(90, 10, 90, 10).toString ()', 'Rectangle(0,10,90,10)'); |
| 213 | 213 |
| 214 finishJSTest(); | 214 finishJSTest(); |
| 215 } | 215 } |
| 216 | 216 |
| 217 </script> | 217 </script> |
| 218 </body> | 218 </body> |
| 219 </html> | 219 </html> |
| OLD | NEW |