From e893060fea346c1b05076d048d34bfac0ed23172 Mon Sep 17 00:00:00 2001 From: Chris Nardi Date: Mon, 2 Apr 2018 10:04:26 -0700 Subject: [PATCH] Remove test that CSSStyleSheet.media is read-only style-sheet-interfaces-001.html tested that styleSheet.media was read-only, but the spec changed to add a [PutForwards] attribute to |media|, meanining that the attribute is no longer truly read-only. assert_readonly can have side-effects if the property has a [PutForwards] attribute, so remove this check, as it was causing the next test to fail. Bug: 821780 Change-Id: I77bee2f11484f6e679e4aee6b0641179c686d1d3 Reviewed-on: https://chromium-review.googlesource.com/989407 Reviewed-by: Emil A Eklund Commit-Queue: Chris Nardi Cr-Commit-Position: refs/heads/master@{#547451} --- css/cssom/style-sheet-interfaces-001.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/css/cssom/style-sheet-interfaces-001.html b/css/cssom/style-sheet-interfaces-001.html index 8a757e5ca2a3c4..20dc9713e58b05 100644 --- a/css/cssom/style-sheet-interfaces-001.html +++ b/css/cssom/style-sheet-interfaces-001.html @@ -84,10 +84,9 @@ assert_readonly(styleSheet, "parentStyleSheet"); assert_readonly(styleSheet, "href"); assert_readonly(styleSheet, "title"); - assert_readonly(styleSheet, "media"); }, "StyleSheet_properties", { assert: [ "type, disabled, ownerNode, parentStyleSheet, href, title, and media properties exist on StyleSheet", - "type, ownerNode, parentStyleSheet, href, title, media properties are read only" ] }); + "type, ownerNode, parentStyleSheet, href, and title properties are read only" ] }); test(function() { assert_equals(styleSheet.type, "text/css");