Chromium Code Reviews| Index: LayoutTests/fast/css/getComputedStyle/getComputedStyle-all.html |
| diff --git a/LayoutTests/fast/css/getComputedStyle/getComputedStyle-all.html b/LayoutTests/fast/css/getComputedStyle/getComputedStyle-all.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..85edeb87dd356ce9f0b573f062cbeab6ba19314d |
| --- /dev/null |
| +++ b/LayoutTests/fast/css/getComputedStyle/getComputedStyle-all.html |
| @@ -0,0 +1,30 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<head> |
|
esprehn
2014/06/12 00:36:44
ditto
|
| +<script src="../../../resources/js-test.js"></script> |
| +<style> |
| +#initial { all: initial; } |
| +#inherit { all: inherit; } |
| +#invalid { all: green; } |
| +#notOnlyInitial { all: initial; color: green; } |
| +#notOnlyInherit { all: inherit; color: green; } |
| +</style> |
| +</head> |
| +<body> |
| + <div id="initial"></div> |
| + <div id="inherit"></div> |
| + <div id="invalid"></div> |
| + <div id="notOnlyInitial"></div> |
| + <div id="notOnlyInherit"></div> |
| + <pre id="console"></pre> |
| +</body> |
| +<script> |
| +description('Test calling getPropertyValue on computed styles for all shorthand property.'); |
| + |
| +shouldBeEqualToString('getComputedStyle(document.getElementById("initial")).all', ""); |
| +shouldBeEqualToString('getComputedStyle(document.getElementById("inherit")).all', ""); |
| +shouldBeEqualToString('getComputedStyle(document.getElementById("invalid")).all', ""); |
| +shouldBeEqualToString('getComputedStyle(document.getElementById("notOnlyInitial")).all', ""); |
| +shouldBeEqualToString('getComputedStyle(document.getElementById("notOnlyInherit")).all', ""); |
| +</script> |
| +</html> |