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

Unified Diff: LayoutTests/fast/dynamic/position-change-to-absolute-with-positioned-child-crash.html

Issue 1212673003: Fix position-change-to-absolute-with-positioned-child-crash.html (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dynamic/position-change-to-absolute-with-positioned-child-crash.html
diff --git a/LayoutTests/fast/dynamic/position-change-to-absolute-with-positioned-child-crash.html b/LayoutTests/fast/dynamic/position-change-to-absolute-with-positioned-child-crash.html
index 891e8198c4b70d85ce5dad88331228b1f78338b5..1a62fd5bd6e38802ba213ee2713f7094c5106afd 100644
--- a/LayoutTests/fast/dynamic/position-change-to-absolute-with-positioned-child-crash.html
+++ b/LayoutTests/fast/dynamic/position-change-to-absolute-with-positioned-child-crash.html
@@ -11,10 +11,10 @@
</div>
<script>
var valueList = ["static", "relative", "absolute", "fixed"]
+var tests = [];
for (var outerValue of valueList) {
for (var innerValue of valueList) {
for (var afterValue of valueList) {
- var tests = [];
var outerElement, innerElement, midElement;
if (outerValue !== afterValue) {
outerElement = document.createElement("div");
@@ -116,14 +116,15 @@ for (var outerValue of valueList) {
innerElement.style.width = "50%";
}]);
- document.body.offsetHeight;
- for (var t of tests) {
- test(function () {
- t[1]();
- // No assert() are needed, we just check layout hits no ASSERT nor crash.
- document.body.offsetHeight;
- }, t[0]);
- }
}
}
+
+document.body.offsetHeight;
+for (var t of tests) {
+ test(function () {
+ t[1]();
+ // No assert() are needed, we just check layout hits no ASSERT nor crash.
+ document.body.offsetHeight;
+ }, t[0]);
+}
</script>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698