Chromium Code Reviews| 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> |