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

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

Issue 1525933002: Support device scale factor test with popups in LayoutTest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/hidpi/popup-menu-appearance-dsf2.html
diff --git a/third_party/WebKit/LayoutTests/fast/hidpi/popup-menu-appearance-dsf2.html b/third_party/WebKit/LayoutTests/fast/hidpi/popup-menu-appearance-dsf2.html
new file mode 100644
index 0000000000000000000000000000000000000000..ecd67c26b631a8cb9061a3cb21c76d8b418a79db
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/hidpi/popup-menu-appearance-dsf2.html
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+ window.enablePixelTesting = true;
+ function startTest() {
+ if (window.testRunner) {
+ testRunner.setBackingScaleFactor(2.0, function() {});
+ }
+ }
+ window.matchMedia('screen and (min-resolution: 2dppx)').
+ addListener(function(e) {
+ if (e.matches) {
+ openMenu();
+ }
+ });
+
+ function openMenu() {
+ openPicker(menu, done, function () {
+ testFailed('picker didn\'t open')
+ finishJSTest();
+ });
+ }
+ function done() {
+ finishJSTest();
+ }
+</script>
+<script src="../../resources/js-test.js"></script>
+<script src="../forms/resources/picker-common.js"></script>
+</head>
+<body onLoad="startTest()">
+<p>The font size in the popup should be same as the font size of the SELECT element except the third OPTION.</p>
+<select id="menu">
+ <option>foo</option>
+ <option selected>bar</option>
+ <option hidden>qux</option>
+ <option>baz</option>
+ <optgroup label="Group">
+ <option>foo</option>
+ <option>bar</option>
+ </optgroup>
+</select>
+<p id="description" style="opacity: 0"></p>
+select<sediv id="console" style="opacity: 0"></div>
+<script>
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698