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

Unified Diff: LayoutTests/svg/css/script-tests/scientific-numbers.js

Issue 956553004: Use Length for baselineShiftValue in SVGLayoutStyle (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: A few more TEs. Created 5 years, 10 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/svg/css/script-tests/scientific-numbers.js
diff --git a/LayoutTests/svg/css/script-tests/scientific-numbers.js b/LayoutTests/svg/css/script-tests/scientific-numbers.js
index 6ca9ac3432f08bd2d1015ad2462cb728eda704f5..aa96a335b639d0fbe7dd6a9ad607f607a7c9fd02 100644
--- a/LayoutTests/svg/css/script-tests/scientific-numbers.js
+++ b/LayoutTests/svg/css/script-tests/scientific-numbers.js
@@ -10,13 +10,13 @@ text.setAttribute("y", "100px");
rootSVGElement.appendChild(text);
function test(valueString, expectedValue) {
- // Reset baseline-shift to baseline.
- text.setAttribute("baseline-shift", "baseline");
- shouldBeEqualToString("getComputedStyle(text).baselineShift", "baseline");
+ // Reset baseline-shift to baseline.
+ text.style.baselineShift = "baseline";
+ shouldBeEqualToString("text.style.baselineShift", "baseline");
- // Run test
- text.setAttribute("baseline-shift", valueString);
- shouldBeEqualToString("getComputedStyle(text).baselineShift", expectedValue);
+ // Run test
+ text.style.baselineShift = valueString;
+ shouldBeEqualToString("text.style.baselineShift", expectedValue);
}
debug("");

Powered by Google App Engine
This is Rietveld 408576698