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

Unified Diff: LayoutTests/fast/css/parsing-unexpected-eof.html

Issue 320783002: CSSGrammer.y should not allow missing closing bracket when it parses querySelector's selector text. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Source/core/css/CSSGrammar.y » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/parsing-unexpected-eof.html
diff --git a/LayoutTests/fast/css/parsing-unexpected-eof.html b/LayoutTests/fast/css/parsing-unexpected-eof.html
index 698e3149dc46298ab7b41bc0f16de1a729dd1844..442a2362f7ba2c2258bf863ac651219a47311678 100644
--- a/LayoutTests/fast/css/parsing-unexpected-eof.html
+++ b/LayoutTests/fast/css/parsing-unexpected-eof.html
@@ -31,7 +31,7 @@
test(function(){
// internal_selector
rules[0].selectorText = "#x, [name=\"x";
- assert_equals(rules[0].selectorText, "#x, [name=\"x\"]");
+ assert_equals(rules[0].selectorText, "div");
}, "Unexpected EOF - CSSStyleRule.selectorText missing ']'");
test(function(){
@@ -42,12 +42,12 @@
test(function(){
// internal_selector
- assert_equals(document.querySelector("#qs [class=x").tagName, "I");
+ assert_throws(null, function() { document.querySelector("#qs [class=x").tagName; });
}, "Unexpected EOF - querySelector missing ']'");
test(function(){
// internal_selector
- assert_equals(document.querySelector("#qs :nth-child(2").tagName, "B");
+ assert_throws(null, function() { document.querySelector("#qs :nth-child(2").tagName });
}, "Unexpected EOF - querySelector missing ')'");
</script>
</body>
« no previous file with comments | « no previous file | Source/core/css/CSSGrammar.y » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698