Enhance shouldBe()/shouldNotBe() to accept anonymous function arguments
[WebKit-https.git] / LayoutTests / fast / css / script-tests / image-set-parsing.js
index f720298..c8c1910 100644 (file)
@@ -43,7 +43,7 @@ function testImageSetRule(description, property, rule, expectedLength, expectedT
         }
     }
 
-    shouldBe("imageSetRule.length", "" + expectedLength); // shouldBe expects string arguments
+    shouldBe("imageSetRule.length", function() { return expectedLength; });
 
     if (imageSetRule) {
         for (var i = 0; i < expectedLength; i++) {