Index: third_party/WebKit/LayoutTests/editing/editability/empty-document-stylewithcss.html |
diff --git a/third_party/WebKit/LayoutTests/editing/editability/empty-document-stylewithcss.html b/third_party/WebKit/LayoutTests/editing/editability/empty-document-stylewithcss.html |
index df61ce0f778ce7a50d0cdf109ba86255ed807d9c..603c5b37642aaa9319ffe605111b564d0adda4a4 100644 |
--- a/third_party/WebKit/LayoutTests/editing/editability/empty-document-stylewithcss.html |
+++ b/third_party/WebKit/LayoutTests/editing/editability/empty-document-stylewithcss.html |
@@ -10,17 +10,17 @@ function runTest() { |
document.open(); |
window.getSelection().addRange(document.createRange()); |
- var initialValue = document.queryCommandValue('StyleWithCSS'); |
+ var initialValue = document.queryCommandState('StyleWithCSS'); |
document.execCommand("StyleWithCSS", false, !eval(initialValue)); |
document.writeln('hello'); |
document.open(); |
window.getSelection().addRange(document.createRange()); |
- var valueAfterFirstNegation = document.queryCommandValue('StyleWithCSS'); |
+ var valueAfterFirstNegation = document.queryCommandState('StyleWithCSS'); |
document.execCommand("StyleWithCSS", false, !eval(valueAfterFirstNegation)); |
document.writeln('world'); |
- var valueAfterSecondNegation = document.queryCommandValue('StyleWithCSS'); |
+ var valueAfterSecondNegation = document.queryCommandState('StyleWithCSS'); |
document.open(); |
document.writeln('This test ensures WebKit executes StyleWithCSS properly even in an empty document.<br>'); |