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

Unified Diff: third_party/WebKit/LayoutTests/editing/execCommand/style-with-css.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
Index: third_party/WebKit/LayoutTests/editing/execCommand/style-with-css.html
diff --git a/third_party/WebKit/LayoutTests/editing/execCommand/style-with-css.html b/third_party/WebKit/LayoutTests/editing/execCommand/style-with-css.html
index 8fa14ff6c0eba8e75ae3830850e4a16a837483de..642647f9f2b1f9e82bcfacb7fa66c41c267a8547 100644
--- a/third_party/WebKit/LayoutTests/editing/execCommand/style-with-css.html
+++ b/third_party/WebKit/LayoutTests/editing/execCommand/style-with-css.html
@@ -30,10 +30,10 @@ if (document.queryCommandState('styleWithCSS') === true)
else
testFailed("queryCommandState('styleWithCSS') should return boolean true");
-if (document.queryCommandValue('styleWithCSS') === 'true')
- testPassed("queryCommandValue('styleWithCSS') returns 'true'");
+if (document.queryCommandValue('styleWithCSS') === '')
+ testPassed("queryCommandValue('styleWithCSS') returns ''");
else
- testFailed("queryCommandValue('styleWithCSS') should return 'true'");
+ testFailed("queryCommandValue('styleWithCSS') should return ''");
document.execCommand('styleWithCSS', false, false);
if (document.queryCommandState('styleWithCSS') === false)
@@ -41,10 +41,10 @@ if (document.queryCommandState('styleWithCSS') === false)
else
testFailed("queryCommandState('styleWithCSS') should return boolean false");
-if (document.queryCommandValue('styleWithCSS') === 'false')
- testPassed("queryCommandValue('styleWithCSS') returns 'false'");
+if (document.queryCommandValue('styleWithCSS') === '')
+ testPassed("queryCommandValue('styleWithCSS') returns ''");
else
- testFailed("queryCommandValue('styleWithCSS') should return 'false'");
+ testFailed("queryCommandValue('styleWithCSS') should return ''");
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698