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

Unified Diff: third_party/WebKit/LayoutTests/fast/hidpi/static/popup-menu-appearance.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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/hidpi/static/popup-menu-appearance.html
diff --git a/third_party/WebKit/LayoutTests/fast/hidpi/popup-menu-appearance-dsf2-with-zoom.html b/third_party/WebKit/LayoutTests/fast/hidpi/static/popup-menu-appearance.html
similarity index 62%
rename from third_party/WebKit/LayoutTests/fast/hidpi/popup-menu-appearance-dsf2-with-zoom.html
rename to third_party/WebKit/LayoutTests/fast/hidpi/static/popup-menu-appearance.html
index 036c53f521eac598a0c4de85dee10ced5abbeac8..cbcfca3f3787139c68c977ab242cbef96ce569e9 100644
--- a/third_party/WebKit/LayoutTests/fast/hidpi/popup-menu-appearance-dsf2-with-zoom.html
+++ b/third_party/WebKit/LayoutTests/fast/hidpi/static/popup-menu-appearance.html
@@ -4,27 +4,14 @@
<script>
window.enablePixelTesting = true;
function startTest() {
- if (window.testRunner) {
- testRunner.enableUseZoomForDSF(function() {
- testRunner.setBackingScaleFactor(2.0, function() {});
- });
- }
- }
- window.matchMedia('screen and (min-resolution: 2dppx)').
- addListener(function(e) {
- if (e.matches) {
- openMenu();
- }
- });
- function openMenu() {
openPicker(document.getElementById('menu'), finishJSTest, function () {
testFailed('picker didn\'t open')
finishJSTest();
});
}
</script>
-<script src="../../resources/js-test.js"></script>
-<script src="../forms/resources/picker-common.js"></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>

Powered by Google App Engine
This is Rietveld 408576698