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

Unified Diff: LayoutTests/fast/css/getComputedStyle/getComputedStyle-exceptions.html

Issue 765123002: Sync the getComputedStyle() IDL with the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/getComputedStyle-exceptions.html
diff --git a/LayoutTests/fast/css/getComputedStyle/getComputedStyle-exceptions.html b/LayoutTests/fast/css/getComputedStyle/getComputedStyle-exceptions.html
new file mode 100644
index 0000000000000000000000000000000000000000..e7163af4a6e6d7660efa12b797663bddaf4bc9de
--- /dev/null
+++ b/LayoutTests/fast/css/getComputedStyle/getComputedStyle-exceptions.html
@@ -0,0 +1,19 @@
+<!doctype html>
+<html>
+<head>
+<script src="../../../resources/js-test.js"></script>
+</head>
+<body>
+<script>
+[
+ "getComputedStyle()",
+ "getComputedStyle(document)",
+ "getComputedStyle(null)",
+ "getComputedStyle(undefined)",
+].forEach(function(expr)
arv (Not doing code reviews) 2014/12/01 14:20:09 I would skip the forEach here. shouldThrow("getCo
philipj_slow 2014/12/01 20:48:53 Done.
+{
+ shouldThrow(expr);
+});
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698