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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/hidpi/popup-menu-appearance-dsf2.html

Issue 1555163002: Revert "Revert of Support device scale factor test with popups in LayoutTest (patchset #2 id:40001 … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: hypothentical fix 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script> 4 <script>
5 window.enablePixelTesting = true; 5 window.enablePixelTesting = true;
6 function startTest() { 6 function startTest() {
7 if (window.testRunner) { 7 if (window.testRunner) {
8 testRunner.enableUseZoomForDSF(function() { 8 testRunner.setBackingScaleFactor(2.0, function() {});
9 testRunner.setBackingScaleFactor(2.0, function() {});
10 });
11 } 9 }
12 } 10 }
13 window.matchMedia('screen and (min-resolution: 2dppx)'). 11 window.matchMedia('screen and (min-resolution: 2dppx)').
14 addListener(function(e) { 12 addListener(function(e) {
15 if (e.matches) { 13 if (e.matches) {
16 openMenu(); 14 openMenu();
17 } 15 }
18 }); 16 });
19 function openMenu() { 17 function openMenu() {
20 openPicker(document.getElementById('menu'), finishJSTest, function () { 18 openPicker(document.getElementById('menu'), finishJSTest, function () {
(...skipping 14 matching lines...) Expand all
35 <option>baz</option> 33 <option>baz</option>
36 <optgroup label="Group"> 34 <optgroup label="Group">
37 <option>foo</option> 35 <option>foo</option>
38 <option>bar</option> 36 <option>bar</option>
39 </optgroup> 37 </optgroup>
40 </select> 38 </select>
41 <p id="description" style="opacity: 0"></p> 39 <p id="description" style="opacity: 0"></p>
42 <div id="console" style="opacity: 0"></div> 40 <div id="console" style="opacity: 0"></div>
43 </body> 41 </body>
44 </html> 42 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698