* Tests that getComputedStyle(div.parentNode).perspective is as one would
* expect if it had the given perspective.
*/
-function testPerspectiveParsing(value) {
-//@{
+var tmp = null;
+var i = 0;
+
+function testPerspectiveParsingRun(value, i) {
+ var str;
+ if(i>0) {
+ str = "TC " + i + ": ";
+ } else {
+ str = '';
+ }
+
test(function() {
var actual = getComputedStyle(div.parentNode)[prefixProp("perspective")];
if (convertToPx(value) === null
}
assert_regexp_match(actual, /^[0-9]+(\.[0-9]+)?px$/, "Computed value has unexpected form");
assert_approx_equals(parseFloat(actual), convertToPx(value), computedEpsilon);
- }, "getComputedStyle(div.parentNode).perspective " + getStyleDescription());
+ }, str + "getComputedStyle(div.parentNode).perspective " + getStyleDescription());
+}
+
+function testPerspectiveParsing(value) {
+//@{
+ if (tmp != value) {
+ tmp = value;
+ i = 0;
+ testPerspectiveParsingRun(value, i)
+ } else {
+ i++;
+ testPerspectiveParsingRun(value, i);
+ }
}
//@}