| <!doctype html> |
| <meta charset="utf-8"> |
| <title>Declared StylePropertyMap.delete Error Handling</title> |
| <link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#delete-a-stylepropertymap"> |
| <script src="/resources/testharness.js"></script> |
| <script src="/resources/testharnessreport.js"></script> |
| <script src="../../resources/testhelper.js"></script> |
| <body> |
| <div id="log"> |
| <script> |
| 'use strict'; |
| |
| test(t => { |
| let styleMap = createDeclaredStyleMap(t, ''); |
| assert_throws_js(TypeError, () => styleMap.delete('lemon')); |
| }, 'Deleting an unsupported property name throws a TypeError'); |
| |
| </script> |