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

Side by Side Diff: LayoutTests/fast/js/script-tests/modify-non-references.js

Issue 20867002: Remove old tests that have been migrated to the v8 repo. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove unused script-tests as well 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 shouldBe("function f() { g()++; } f.toString()", "'function f() { g()++; }'");
2 shouldBe("function f() { g()--; } f.toString()", "'function f() { g()--; }'");
3 shouldBe("function f() { ++g(); } f.toString()", "'function f() { ++g(); }'");
4 shouldBe("function f() { --g(); } f.toString()", "'function f() { --g(); }'");
5 shouldBe("function f() { g() = 1; } f.toString()", "'function f() { g() = 1; }'" );
6 shouldBe("function f() { g() += 1; } f.toString()", "'function f() { g() += 1; } '");
7 shouldThrow("g()++", "'ReferenceError: Postfix ++ operator applied to value that is not a reference.'");
8 shouldThrow("g()--", "'ReferenceError: Postfix -- operator applied to value that is not a reference.'");
9 shouldThrow("++g()", "'ReferenceError: Prefix ++ operator applied to value that is not a reference.'");
10 shouldThrow("--g()", "'ReferenceError: Prefix -- operator applied to value that is not a reference.'");
11 shouldThrow("g() = 1", "'ReferenceError: Left side of assignment is not a refere nce.'");
12 shouldThrow("g() += 1", "'ReferenceError: Left side of assignment is not a refer ence.'");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698