[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: tests/khtmltests/regression/tests/js
From: Maks Orlovich <maksim () kde ! org>
Date: 2010-11-01 17:05:24
Message-ID: 20101101170524.2A5B0AC89B () svn ! kde ! org
[Download RAW message or body]
SVN commit 1191998 by orlovich:
Regression test for #255661
CCBUG: 255661
M +21 -0 inbuilt_function_tostring.js
--- trunk/tests/khtmltests/regression/tests/js/inbuilt_function_tostring.js #1191997:1191998
@@ -170,3 +170,24 @@
shouldBe("StripSpaces(RegExp.prototype.toString.toString())","\"functiontoString(){[nativecode]}\"");
shouldBe("StripSpaces(Error.prototype.toString.toString())","\"functiontoString(){[nativecode]}\"");
+
+
+function testConstructor(name) {
+ shouldBe("StripSpaces(" + name + " .toString())", "\"function" + name + "(){[nativecode]}\"");
+}
+
+testConstructor("Object");
+testConstructor("Function");
+testConstructor("Array");
+testConstructor("Boolean");
+testConstructor("String");
+testConstructor("Number");
+testConstructor("Date");
+testConstructor("RegExp");
+testConstructor("Error");
+testConstructor("EvalError");
+testConstructor("RangeError");
+testConstructor("ReferenceError");
+testConstructor("SyntaxError");
+testConstructor("TypeError");
+testConstructor("URIError");
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic