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

Unified Diff: LayoutTests/inspector/styles/device-metrics-fit-window.html

Issue 23187005: [DevTools] Use device metrics emulation implemented in content. (Closed) Base URL: svn://svn.chromium.org/blink/trunk/
Patch Set: Another rebase Created 7 years, 2 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 | « LayoutTests/TestExpectations ('k') | LayoutTests/inspector/styles/device-metrics-fit-window-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/styles/device-metrics-fit-window.html
diff --git a/LayoutTests/inspector/styles/device-metrics-fit-window.html b/LayoutTests/inspector/styles/device-metrics-fit-window.html
deleted file mode 100644
index a6953dfeadfcb1286cd981658bf2f3a8bd5fbb5d..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/styles/device-metrics-fit-window.html
+++ /dev/null
@@ -1,125 +0,0 @@
-<html>
-<head>
-
-<style type="text/css" media="screen">
-body {
- margin: 0;
-}
-
-#main {
- width: 1024px;
-}
-</style>
-
-<script src="../../http/tests/inspector/inspector-test.js"></script>
-<script>
-
-function mainElement()
-{
- return document.getElementById("main");
-}
-
-function getDimensions()
-{
- if (!window.internals)
- return "Internals is required";
- return JSON.stringify({
- width: internals.unscaledViewportRect().width,
- height: internals.unscaledViewportRect().height,
- mainWidth: mainElement().offsetWidth,
- mainHeight: mainElement().offsetHeight,
- innerWidth: window.innerWidth,
- innerHeight: window.innerHeight
- });
-}
-
-function test()
-{
- PageAgent.enable();
- setAndDumpOverride(480, 800, 1.1, false, step1);
-
- function step1()
- {
- setAndDumpOverride(480, 800, 1.1, true, InspectorTest.completeTest.bind(InspectorTest));
- }
-
- function setAndDumpOverride(width, height, textSizeRatio, fitWindow, callback)
- {
- function finalCallback(result)
- {
- var value = JSON.parse(result.value);
- InspectorTest.addResult("document: " + value.width + "x" + value.height + ", #main: " + value.mainWidth + "x" + value.mainHeight + ", window: " + value.innerWidth + "x" + value.innerHeight);
- if (callback)
- callback();
- }
-
- function overrideCallback()
- {
- InspectorTest.evaluateInPage("getDimensions()", finalCallback);
- }
-
- PageAgent.setDeviceMetricsOverride(width, height, textSizeRatio, fitWindow, overrideCallback);
- }
-}
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests that emulating device metrics with "Fit window" for a small FrameView correctly downscales page content.
-</p>
-
-<div id="main">
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
-</div>
-</body>
-</html>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/inspector/styles/device-metrics-fit-window-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698