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

Unified Diff: LayoutTests/css3/calc/transitions.html

Issue 15738009: Beat the transition tests with a sanity stick. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Pass presubmit. Created 7 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/css3/calc/transitions.html
diff --git a/LayoutTests/css3/calc/transitions.html b/LayoutTests/css3/calc/transitions.html
index 433b67f57f3935bf969cbe886a4474880728349e..c059abb6bb013238af9fa11e01d6765d3913b6b6 100644
--- a/LayoutTests/css3/calc/transitions.html
+++ b/LayoutTests/css3/calc/transitions.html
@@ -44,7 +44,7 @@ This tests that transitions containing calc() expressions transition correctly.
</div>
<div id="result"></div>
-<script src="../../transitions/resources/transition-test-helpers.js"></script>
+<script src="../../animations/resources/animation-test-helpers.js"></script>
<script>
const tests = ["startCalcEndCalc", "startPxEndCalc", "startPercentEndCalc", "startCalcEndPx", "startCalcEndPercent"];
@@ -64,9 +64,9 @@ function initialize(id)
var element = document.getElementById(id);
var width = element.offsetWidth;
if (width == expectedStartWidth)
- element.innerHTML += 'PASS - "width" property for "' + id +'" element at 0.0s was: ' + width;
+ result += 'PASS - "width" property for "' + id +'" element at 0.0s was: ' + width + '<br>';
else
- element.innerHTML += 'FAIL - "width" property for "' + id +'" element at 0.0s expected: ' + expectedStartWidth + ' but saw: ' + width;
+ result += 'FAIL - "width" property for "' + id +'" element at 0.0s expected: ' + expectedStartWidth + ' but saw: ' + width + '<br>';
element.className += " go";
}

Powered by Google App Engine
This is Rietveld 408576698