Title: [187581] trunk/LayoutTests
- Revision
- 187581
- Author
- benja...@webkit.org
- Date
- 2015-07-30 02:52:48 -0700 (Thu, 30 Jul 2015)
Log Message
Update JSC's standalone-pre.js for r187575
https://bugs.webkit.org/show_bug.cgi?id=147444
Unreviewed.
* resources/standalone-pre.js:
(shouldBeType):
Copy shouldBeType() from the non-standalone version.
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (187580 => 187581)
--- trunk/LayoutTests/ChangeLog 2015-07-30 06:39:59 UTC (rev 187580)
+++ trunk/LayoutTests/ChangeLog 2015-07-30 09:52:48 UTC (rev 187581)
@@ -1,3 +1,14 @@
+2015-07-30 Benjamin Poulain <benja...@webkit.org>
+
+ Update JSC's standalone-pre.js for r187575
+ https://bugs.webkit.org/show_bug.cgi?id=147444
+
+ Unreviewed.
+
+ * resources/standalone-pre.js:
+ (shouldBeType):
+ Copy shouldBeType() from the non-standalone version.
+
2015-07-29 Andy VanWagoner <thetalecraf...@gmail.com>
Implement basic types for ECMAScript Internationalization API
Modified: trunk/LayoutTests/resources/standalone-pre.js (187580 => 187581)
--- trunk/LayoutTests/resources/standalone-pre.js 2015-07-30 06:39:59 UTC (rev 187580)
+++ trunk/LayoutTests/resources/standalone-pre.js 2015-07-30 09:52:48 UTC (rev 187581)
@@ -175,6 +175,23 @@
return values.length;
}
+function shouldBeType(_a, _type) {
+ var exception;
+ var _av;
+ try {
+ _av = eval(_a);
+ } catch (e) {
+ exception = e;
+ }
+
+ var _typev = eval(_type);
+ if (_av instanceof _typev) {
+ testPassed(_a + " is an instance of " + _type);
+ } else {
+ testFailed(_a + " is not an instance of " + _type);
+ }
+}
+
function shouldBeTrue(_a) { shouldBe(_a, "true"); }
function shouldBeFalse(_a) { shouldBe(_a, "false"); }
function shouldBeNaN(_a) { shouldBe(_a, "NaN"); }
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes