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

Unified Diff: LayoutTests/inspector/text-autosizing-override.html

Issue 253843007: [DevTools] Clean up text autosizing. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed test Created 6 years, 8 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
« no previous file with comments | « no previous file | LayoutTests/inspector/text-autosizing-override-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/text-autosizing-override.html
diff --git a/LayoutTests/inspector/text-autosizing-override.html b/LayoutTests/inspector/text-autosizing-override.html
index c64fa37f475969c8a8639b266d9c541b541a3d30..948638558e58a504a678f682f9f87c7d33695ab1 100644
--- a/LayoutTests/inspector/text-autosizing-override.html
+++ b/LayoutTests/inspector/text-autosizing-override.html
@@ -72,9 +72,17 @@
});
},
- function checkNotAutosizedWithoutDeviceMetrics(next) {
+ function checkAutosizedWithoutDeviceMetrics(next) {
PageAgent.invoke_setDeviceMetricsOverride({width: 0, height: 0, deviceScaleFactor: 0, emulateViewport: false, fitWindow: false, textAutosizing: true}, function() {
- assertAutosizingResult(false, next);
+ assertAutosizingResult(true, next);
+ });
+ },
+
+ function checkNotAutosizedWithoutDeviceMetrics(next) {
+ InspectorTest.evaluateInPage("forceAutosizing(false)", function() {
+ PageAgent.invoke_setDeviceMetricsOverride({width: 0, height: 0, deviceScaleFactor: 0, emulateViewport: false, fitWindow: false, textAutosizing: true}, function() {
+ assertAutosizingResult(false, next);
+ });
});
},
« no previous file with comments | « no previous file | LayoutTests/inspector/text-autosizing-override-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698