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..480ebdccc67808545c79f8612a929d48520bbdd1 |
--- /dev/null |
+++ b/LayoutTests/fast/css/getComputedStyle/computed-style-non-element-parameter.html |
@@ -0,0 +1,22 @@ |
+<div id="result"></div> |
+<script> |
+ if (window.testRunner) |
tkent
2014/11/25 22:59:28
Indent the whole content of <script> is not helpfu
|
+ testRunner.dumpAsText(); |
+ |
+ var noException = true; |
+ try { |
+ getComputedStyle(null); |
+ noException = false; |
tkent
2014/11/25 22:59:28
Please import ../../../resources/js-test.js, and u
|
+ } catch(e) {}; |
+ try { |
+ getComputedStyle(undefined); |
+ noException = false; |
+ } catch(e) {}; |
+ var txtNode = document.createTextNode("foo"); |
+ try { |
+ getComputedStyle(txtNode); |
+ noException = false; |
+ } catch(e) {}; |
+ |
+ document.getElementById("result").innerText = noException ? "PASS" : "FAIL" |
+</script> |