Chromium Code Reviews

Unified Diff: test/webkit/fast/js/toString-exception.js

Issue 20280003: Migrate more tests from blink repository. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: test/webkit/fast/js/toString-exception.js
diff --git a/test/webkit/instanceof-operator.js b/test/webkit/fast/js/toString-exception.js
similarity index 81%
copy from test/webkit/instanceof-operator.js
copy to test/webkit/fast/js/toString-exception.js
index 1230181584337c86a13846618b2cefe510239e59..2a8b50c0fdd080deeb9a8115a04b9d3680bea08b 100644
--- a/test/webkit/instanceof-operator.js
+++ b/test/webkit/fast/js/toString-exception.js
@@ -22,12 +22,22 @@
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
description(
-"instanceof test"
+'This test checks for regression against <a href="https://bugs.webkit.org/show_bug.cgi?id=7343">7343: REGRESSION: fast/js/toString-overrides.html fails when run multiple times</a>.'
);
-getterCalled = false;
+var a = [{ toString : 0 }];
+
try {
- ({} instanceof { get prototype(){ getterCalled = true; } });
+ a.toString();
} catch (e) {
}
-shouldBeFalse("getterCalled");
+
+var caught = false;
+
+try {
+ a.toString();
+} catch (e) {
+caught = true;
+}
+
+shouldBeTrue("caught");
« no previous file with comments | « test/webkit/fast/js/string-split-ignore-case-expected.txt ('k') | test/webkit/fast/js/toString-exception-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine