| 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> |
| 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 openPickerWithMock(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 |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 | 212 |
| 213 popupWindow.global.params.anchorRectInScreen = makeRect(30, 0, 30, 10); | 213 popupWindow.global.params.anchorRectInScreen = makeRect(30, 0, 30, 10); |
| 214 shouldBeEqualToString('popupWindow.adjustWindowRect(90, 10, 90, 10).toString
()', 'Rectangle(0,10,90,10)'); | 214 shouldBeEqualToString('popupWindow.adjustWindowRect(90, 10, 90, 10).toString
()', 'Rectangle(0,10,90,10)'); |
| 215 | 215 |
| 216 finishJSTest(); | 216 finishJSTest(); |
| 217 } | 217 } |
| 218 | 218 |
| 219 </script> | 219 </script> |
| 220 </body> | 220 </body> |
| 221 </html> | 221 </html> |
| OLD | NEW |