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

Unified Diff: third_party/WebKit/LayoutTests/editing/editability/empty-document-stylewithcss.html

Issue 2775503005: Editing: queryCommandValue("stylewithcss") should always return an empty string. (Closed)
Patch Set: . Created 3 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/execCommand/reset-values-after-navigation.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>');
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/execCommand/reset-values-after-navigation.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698