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(""); |