compare-computed-style.js (252B)
1 test(function() { 2 var testStyle = getComputedStyle(document.getElementById('test')); 3 var refStyle = getComputedStyle(document.getElementById('ref')); 4 for (var prop in testStyle) { 5 assert_equals(testStyle[prop], refStyle[prop], prop); 6 } 7 });