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

Unified Diff: LayoutTests/fast/css/getComputedStyle/computed-style-non-element-parameter.html

Issue 752713002: Make getComputedStyle throw for incorrect first parameter (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address issues Created 6 years, 1 month 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 | LayoutTests/fast/css/getComputedStyle/computed-style-non-element-parameter-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/fast/css/getComputedStyle/computed-style-non-element-parameter-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698