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

Unified Diff: LayoutTests/fast/multicol/image-inside-nested-blocks-with-border.html

Issue 299373006: Move old multicol tests to a separate directory. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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/fast/multicol/image-inside-nested-blocks-with-border.html
diff --git a/LayoutTests/fast/multicol/image-inside-nested-blocks-with-border.html b/LayoutTests/fast/multicol/image-inside-nested-blocks-with-border.html
deleted file mode 100644
index 1153403d31a52c0784b147cb1041ced2a5856cca..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/multicol/image-inside-nested-blocks-with-border.html
+++ /dev/null
@@ -1,44 +0,0 @@
-<html>
-<body>
-<div id="tests" style="-webkit-column-count:2; -webkit-column-gap:0; column-count:2; column-gap:0; column-fill:auto; height:300px; width:600px;">
-<div style="height:280px"></div>
-<div id="f1" style="border:5px solid black; float:left">
-<img style="display:block;width:140px;height:80px;">
-</div>
-</div>
-<div id="result"></div>
-<script>
- function floatOffset(float)
- {
- var parentRect = document.getElementById('tests').getBoundingClientRect();
- var rect = float.getBoundingClientRect();
- return { width: rect.left - parentRect.left, height: rect.top - parentRect.top };
- }
-
- var tests = [
- ["f1", 300, 0]
- ];
-
- var test;
- var failures = 0;
- while (test = tests.shift()) {
- var float = document.getElementById(test[0]);
- var result = floatOffset(float);
- var passed = result.width === test[1] && result.height === test[2]
- float.style.backgroundColor = passed ? "green" : "red";
- if (!passed)
- failures++
- }
-
- if (window.testRunner) {
- testRunner.dumpAsText();
- document.getElementById("tests").style.display = "none";
- }
-
- document.getElementById("result").innerText = failures ? "FAIL: " + failures + " cases failed" : "PASS";
-</script>
-
-
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698