Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

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. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
This is Rietveld 408576698