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

Unified Diff: third_party/WebKit/LayoutTests/custom-properties/register-property.html

Issue 2405153002: Remove CSS.unregisterProperty as the WG resolved to remove it for now (Closed)
Patch Set: Created 4 years, 2 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/custom-properties/unregister-property.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/custom-properties/register-property.html
diff --git a/third_party/WebKit/LayoutTests/custom-properties/register-property.html b/third_party/WebKit/LayoutTests/custom-properties/register-property.html
index 7a5aadadcdd834a21a1c346d951ba2f0f8e9885c..5c8b45b9e91f3817805c07382bc5673b880f83cc 100644
--- a/third_party/WebKit/LayoutTests/custom-properties/register-property.html
+++ b/third_party/WebKit/LayoutTests/custom-properties/register-property.html
@@ -32,4 +32,10 @@ test(function() {
assert_throws(new SyntaxError(),
() => CSS.registerProperty({name: '--syntax-test-3', syntax: 'length'}));
}, "registerProperty only allows omitting initialValue is syntax is '*'");
+
+test(function() {
+ CSS.registerProperty({name: '--re-register', syntax: '<length>', initialValue: '0px'});
+ assert_throws({name: 'InvalidModificationError'},
+ () => CSS.registerProperty({name: '--re-register', syntax: '<percentage>', initialValue: '0%'}));
+}, "registerProperty fails for an already registered property");
</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/custom-properties/unregister-property.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698