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

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

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
Index: LayoutTests/fast/css/getComputedStyle/computed-style-non-element-parameter-expected.txt
diff --git a/LayoutTests/fast/css/getComputedStyle/computed-style-non-element-parameter-expected.txt b/LayoutTests/fast/css/getComputedStyle/computed-style-non-element-parameter-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..8e418825f4df7824c392af77613bcbac5a38e4dd
--- /dev/null
+++ b/LayoutTests/fast/css/getComputedStyle/computed-style-non-element-parameter-expected.txt
@@ -0,0 +1,7 @@
+PASS getComputedStyle(null) threw exception TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'..
+PASS getComputedStyle(undefined) threw exception TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'..
+PASS getComputedStyle(document.createTextNode("foo")) threw exception TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'..
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/fast/css/getComputedStyle/computed-style-non-element-parameter.html ('k') | Source/core/frame/LocalDOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698