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

Unified Diff: third_party/WebKit/LayoutTests/svg/W3C-SVG-1.1-SE/coords-dom-02-f.svg

Issue 2540173002: Attempt to deflake coords-dom-02-f.svg (Closed)
Patch Set: review nit Created 4 years 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: third_party/WebKit/LayoutTests/svg/W3C-SVG-1.1-SE/coords-dom-02-f.svg
diff --git a/third_party/WebKit/LayoutTests/svg/W3C-SVG-1.1-SE/coords-dom-02-f.svg b/third_party/WebKit/LayoutTests/svg/W3C-SVG-1.1-SE/coords-dom-02-f.svg
index cd0490346f3f5c94491a7ebfccaa8d6c006ef1e0..29a5a9eaf4f4d46cd7735ac25c59945d7bc0fa64 100644
--- a/third_party/WebKit/LayoutTests/svg/W3C-SVG-1.1-SE/coords-dom-02-f.svg
+++ b/third_party/WebKit/LayoutTests/svg/W3C-SVG-1.1-SE/coords-dom-02-f.svg
@@ -54,31 +54,34 @@
</g>
</g>
+ <script xlink:href="../../resources/run-after-layout-and-paint.js"></script>
<script type="text/ecmascript"><![CDATA[
- var passed = false;
-
- try
- {
- var g = document.getElementById("g");
- var c = document.getElementById("c");
- var tfm = g.transform.baseVal.getItem(0);
- var mtx = tfm.matrix;
- mtx.a = 2;
- if(tfm.type == SVGTransform.SVG_TRANSFORM_MATRIX)
+ runAfterLayoutAndPaint(function() {
+ var passed = false;
+
+ try
{
- passed = true;
+ var g = document.getElementById("g");
+ var c = document.getElementById("c");
+ var tfm = g.transform.baseVal.getItem(0);
+ var mtx = tfm.matrix;
+ mtx.a = 2;
+ if(tfm.type == SVGTransform.SVG_TRANSFORM_MATRIX)
+ {
+ passed = true;
+ }
}
- }
- catch(e) {}
-
- if(passed)
- {
- c.setAttribute("fill", "lime");
- }
- else
- {
- c.setAttribute("fill", "red");
- }
+ catch(e) {}
+
+ if(passed)
+ {
+ c.setAttribute("fill", "lime");
+ }
+ else
+ {
+ c.setAttribute("fill", "red");
+ }
+ }, true);
]]></script>
</g>
« 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