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

Unified Diff: LayoutTests/inspector/elements/highlight-svg-root-zoomed.html

Issue 1158883003: DevTools: shard inspector/elements tests for faster execution. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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: LayoutTests/inspector/elements/highlight-svg-root-zoomed.html
diff --git a/LayoutTests/inspector/elements/highlight-svg-root-zoomed.html b/LayoutTests/inspector/elements/highlight-svg-root-zoomed.html
deleted file mode 100644
index 8d1668ba9c5c21d2c5194cd0e02b6111f6f5d65a..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/elements/highlight-svg-root-zoomed.html
+++ /dev/null
@@ -1,72 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<style>
-
-body {
- margin: 0;
-}
-#svg-root {
- position: relative;
- left: 10px;
- top: 20px;
- margin: 30px;
- border: solid 40px aqua;
- padding: 50px;
- background-color: blue;
-}
-
-</style>
-<script src="../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../http/tests/inspector/elements-test.js"></script>
-<script>
-
-function startTest()
-{
- if (window.eventSender)
- window.eventSender.zoomPageIn();
- runTest();
-}
-
-function test()
-{
- InspectorTest.dumpInspectorHighlightJSON("svg-root", InspectorTest.completeTest.bind(InspectorTest));
-}
-
-</script>
-</head>
-<body onload="startTest()">
-<svg id="svg-root" width="100" height="200" viewbox="0 0 50 100"></svg>
-<p id="description">This test verifies the position and size of the highlight rectangles overlayed on an SVG root element when the page is zoomed.</p>
-<!--
-
-Expected value calculations for #svg-root's highlight rectangles at 120% zoom:
-
-margin rect:
- left: (10) * 1.2 == 12
- top: (20) * 1.2 == 24
- width: (100 + 2 * (30 + 40 + 50)) * 1.2 == 340 * 1.2 == 408
- height: (200 + 2 * (30 + 40 + 50)) * 1.2 == 440 * 1.2 == 528
-
-border rect:
- left: (10 + 30) * 1.2 == 40 * 1.2 == 48
- top: (20 + 30) * 1.2 == 50 * 1.2 == 60
- width: (100 + 2 * (40 + 50)) * 1.2 == 280 * 1.2 == 336
- height: (200 + 2 * (40 + 50)) * 1.2 == 380 * 1.2 == 456
-
-padding rect:
- left: (10 + 30 + 40) * 1.2 == 80 * 1.2 == 96
- top: (20 + 30 + 40) * 1.2 == 90 * 1.2 == 108
- width: (100 + 2 * (50)) * 1.2 == 200 * 1.2 == 240
- height: (200 + 2 * (50)) * 1.2 == 300 * 1.2 == 360
-
-content rect:
- left: (10 + 30 + 40 + 50) * 1.2 == 130 * 1.2 == 156
- top: (20 + 30 + 40 + 50) * 1.2 == 140 * 1.2 == 168
- width: (100) * 1.2 == 120
- height: (200) * 1.2 == 240
-
--->
-<div id="console"></div>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698