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

Unified Diff: third_party/WebKit/LayoutTests/fast/js/script-tests/inc-const-valueOf.js

Issue 1815833002: Rebaseline, fix, or remove various tests dealing with V8 behavior (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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: third_party/WebKit/LayoutTests/fast/js/script-tests/inc-const-valueOf.js
diff --git a/third_party/WebKit/LayoutTests/fast/js/script-tests/inc-const-valueOf.js b/third_party/WebKit/LayoutTests/fast/js/script-tests/inc-const-valueOf.js
deleted file mode 100644
index 463862bd0e89ebe0d91ece6850e0935a8d5d890c..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/js/script-tests/inc-const-valueOf.js
+++ /dev/null
@@ -1,56 +0,0 @@
-description(
-'Test for regression against <a href="https://bugs.webkit.org/show_bug.cgi?id=95815">'
-);
-
-function testPostIncConstVarWithIgnoredResult()
-{
- var okay = false;
- const a = {
- valueOf: (function(){
- okay = true;
- })
- };
-
- a++;
-
- return okay;
-}
-
-function testPreIncConstVarWithIgnoredResult()
-{
- var okay = false;
- const a = {
- valueOf: (function(){
- okay = true;
- })
- };
-
- ++a;
-
- return okay;
-}
-
-function testPreIncConstVarWithAssign()
-{
- var okay = false;
- var x = 42;
- const a = {
- valueOf: (function(){
- throw x == 42;
- })
- };
-
- try {
- x = ++a;
- } catch (e) {
- okay = e
- };
-
- return okay;
-}
-
-shouldBeTrue('testPostIncConstVarWithIgnoredResult()');
-shouldBeTrue('testPreIncConstVarWithIgnoredResult()');
-shouldBeTrue('testPreIncConstVarWithAssign()');
-
-successfullyParsed = true;

Powered by Google App Engine
This is Rietveld 408576698