From 75fbd71ee0a39c76cf035e744dc28e408bff7c6f Mon Sep 17 00:00:00 2001 From: Norbert Lindenberg Date: Mon, 10 Sep 2012 11:53:56 -0700 Subject: Updated tests for ECMAScript Internationalization API spec changes; made small enhancements. - Updated DateTimeFormat tests for new handling of hour12 options property. - Added a few invalid language tags to test of IsStructurallyValidLanguageTag. - Added user-defined language tag to test of CanonicalizeLanguageTag. - Added test for the Intl property of the global object. --- console/harness/testBuiltInObject.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'console') diff --git a/console/harness/testBuiltInObject.js b/console/harness/testBuiltInObject.js index e8eb39c67..3a8d24fdc 100644 --- a/console/harness/testBuiltInObject.js +++ b/console/harness/testBuiltInObject.js @@ -58,7 +58,8 @@ function testBuiltInObject(obj, isFunction, isConstructor, properties, length) { } if (obj.length !== length) { - $ERROR("Function's length property doesn't have specified value."); + $ERROR("Function's length property doesn't have specified value; expected " + + length + ", got " + obj.length + "."); } var desc = Object.getOwnPropertyDescriptor(obj, "length"); -- cgit v1.2.3