Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/hidpi/data-suggestion-picker-appearance-dsf2-with-zoom.html

Issue 1571833002: Add popup layout tests with device scale factor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 window.enablePixelTesting = true;
6 function startTest() {
7 if (window.testRunner) {
8 testRunner.enableUseZoomForDSF(function() {
9 testRunner.setBackingScaleFactor(2.0, function() {});
10 });
11 }
12 }
13 window.matchMedia('screen and (min-resolution: 2dppx)').
14 addListener(function(e) {
15 if (e.matches) {
16 doOpenPopup();
17 }
18 });
19 function doOpenPopup() {
20 openPicker(document.getElementById('date'),
21 finishJSTest,
22 function () {
23 testFailed('picker didn\'t open')
24 finishJSTest();
25 });
26 }
27 </script>
28 <script src="../../resources/js-test.js"></script>
29 <script src="../forms/resources/picker-common.js"></script>
30 <script src="../forms/resources/suggestion-picker-common.js"></script>
31 </head>
32 <body onLoad="startTest()" style="background-color: #eeffff;">
33 <input type=date id=date value="10000-12-31" list="suggestions" style="width: 20 0px;">
34 <datalist id=suggestions>
35 <option>2012-01-00</option> <!--invalid-->
36 <option>foo</option> <!--invalid-->
37 <option label="Today">2012-01-01</option>
38 <option label="Tomorrow">2012-01-02</option>
39 <option>2012-01-03</option>
40 <option>2012-01-04</option>
41 <option>2012-01-05</option>
42 <option>2012-01-06</option>
43 <option>2012-01-07</option>
44 <option>2012-01-08</option>
45 <option>2012-01-09</option>
46 <option>2012-01-10</option>
47 <option>2012-01-11</option>
48 <option>2012-01-12</option>
49 <option>2012-01-13</option>
50 <option>2012-01-14</option>
51 <option>2012-01-15</option>
52 <option>2012-01-16</option>
53 <option>2012-01-17</option>
54 <option>2012-01-18</option>
55 <option>2012-01-19</option>
56 </datalist>
57 <p id="description" style="opacity: 0"></p>
58 <div id="console" style="opacity: 0"></div>
59 </body>
60 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698