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

Unified Diff: LayoutTests/fast/media/mq-append-delete.html

Issue 14620012: Improved parse error handling for CSSMQ. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@query-selector-performance
Patch Set: Let expected result for "and(" be the current implementation. Created 7 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
Index: LayoutTests/fast/media/mq-append-delete.html
diff --git a/LayoutTests/fast/media/mq-append-delete.html b/LayoutTests/fast/media/mq-append-delete.html
index c855e7d6c081cacc6ec23999ae9108d4016f9881..0d1ea7b4e3dbacd06504b8d3d76dbdd571d62004 100644
--- a/LayoutTests/fast/media/mq-append-delete.html
+++ b/LayoutTests/fast/media/mq-append-delete.html
@@ -77,6 +77,13 @@ test(function () {
assert_equals(mediaList.mediaText, "screen, tv, not all");
}, "Add 'not all' to 'screen, tv'");
+test(function () {
+ mediaList.mediaText = "screen, tv";
+ mediaList.appendMedium("#?:/");
+ assert_equals(mediaList.mediaText, "screen, tv");
+ // Ignored; terminate steps.
+}, "Add '#?:/' to 'screen, tv'");
+
// - deleteMedium()
test(function () {
@@ -141,4 +148,11 @@ test(function () {
// CSSOM 4.1: Parsing media query returns none as
// there are more than one; terminate steps.
}, "Remove 'tv, print' from 'screen, tv, screen'");
+
+test(function () {
+ mediaList.mediaText = "screen, tv, not all";
+ mediaList.deleteMedium("#?:/");
+ // Ignored; terminate steps.
+ assert_equals(mediaList.mediaText, "screen, tv, not all");
+}, "Remove '#?:/' from 'screen, tv, not all'");
</script>
« no previous file with comments | « LayoutTests/fast/media/media-query-list-syntax-expected.txt ('k') | LayoutTests/fast/media/mq-append-delete-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698