Chromium Code Reviews| Index: LayoutTests/fast/css/getComputedStyle/computed-style-non-element-parameter.html |
| diff --git a/LayoutTests/fast/css/getComputedStyle/computed-style-non-element-parameter.html b/LayoutTests/fast/css/getComputedStyle/computed-style-non-element-parameter.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..587df1a33f39a9a6d2b6dacfa865cb4526e0ec70 |
| --- /dev/null |
| +++ b/LayoutTests/fast/css/getComputedStyle/computed-style-non-element-parameter.html |
| @@ -0,0 +1,6 @@ |
| +<script src="../../../resources/js-test.js"></script> |
| +<script> |
| +shouldThrow("getComputedStyle(null)"); |
| +shouldThrow("getComputedStyle(undefined)"); |
| +shouldThrow("getComputedStyle(document.createTextNode(\"foo\"))"); |
| +</script> |