From 5543263c19c4c35f1bf36e862a6334688033a878 Mon Sep 17 00:00:00 2001 From: "rossberg@chromium.org" Date: Fri, 28 Feb 2014 14:26:32 +0000 Subject: [PATCH] Move all Harmony-only tests to harmony/ R=jkummerow@chromium.org BUG= Review URL: https://codereview.chromium.org/178583005 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19622 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- test/mjsunit/{ => harmony}/regress/regress-173361.js | 0 test/mjsunit/{ => harmony}/regress/regress-2034.js | 0 test/mjsunit/{ => harmony}/regress/regress-2156.js | 0 test/mjsunit/{ => harmony}/regress/regress-2186.js | 0 test/mjsunit/{ => harmony}/regress/regress-2219.js | 0 test/mjsunit/{ => harmony}/regress/regress-2225.js | 0 test/mjsunit/{ => harmony}/regress/regress-2243.js | 0 test/mjsunit/{ => harmony}/regress/regress-2322.js | 0 test/mjsunit/{ => harmony}/regress/regress-2681.js | 0 test/mjsunit/{ => harmony}/regress/regress-2691.js | 0 test/mjsunit/{ => harmony}/regress/regress-2829.js | 0 test/mjsunit/{ => harmony}/regress/regress-343928.js | 0 test/mjsunit/{ => harmony}/regress/regress-crbug-248025.js | 0 test/mjsunit/{ => harmony}/regress/regress-crbug-346141.js | 0 test/mjsunit/{ => harmony}/regress/regress-crbug-347528.js | 0 test/mjsunit/{ => harmony}/regress/regress-lookup-transition.js | 0 .../{ => harmony}/regress/regress-observe-empty-double-array.js | 0 test/mjsunit/{ => harmony}/set-prototype-of.js | 0 test/mjsunit/proto-accessor.js | 4 ++++ test/mjsunit/readonly.js | 9 +++++++-- 20 files changed, 11 insertions(+), 2 deletions(-) rename test/mjsunit/{ => harmony}/regress/regress-173361.js (100%) rename test/mjsunit/{ => harmony}/regress/regress-2034.js (100%) rename test/mjsunit/{ => harmony}/regress/regress-2156.js (100%) rename test/mjsunit/{ => harmony}/regress/regress-2186.js (100%) rename test/mjsunit/{ => harmony}/regress/regress-2219.js (100%) rename test/mjsunit/{ => harmony}/regress/regress-2225.js (100%) rename test/mjsunit/{ => harmony}/regress/regress-2243.js (100%) rename test/mjsunit/{ => harmony}/regress/regress-2322.js (100%) rename test/mjsunit/{ => harmony}/regress/regress-2681.js (100%) rename test/mjsunit/{ => harmony}/regress/regress-2691.js (100%) rename test/mjsunit/{ => harmony}/regress/regress-2829.js (100%) rename test/mjsunit/{ => harmony}/regress/regress-343928.js (100%) rename test/mjsunit/{ => harmony}/regress/regress-crbug-248025.js (100%) rename test/mjsunit/{ => harmony}/regress/regress-crbug-346141.js (100%) rename test/mjsunit/{ => harmony}/regress/regress-crbug-347528.js (100%) rename test/mjsunit/{ => harmony}/regress/regress-lookup-transition.js (100%) rename test/mjsunit/{ => harmony}/regress/regress-observe-empty-double-array.js (100%) rename test/mjsunit/{ => harmony}/set-prototype-of.js (100%) diff --git a/test/mjsunit/regress/regress-173361.js b/test/mjsunit/harmony/regress/regress-173361.js similarity index 100% rename from test/mjsunit/regress/regress-173361.js rename to test/mjsunit/harmony/regress/regress-173361.js diff --git a/test/mjsunit/regress/regress-2034.js b/test/mjsunit/harmony/regress/regress-2034.js similarity index 100% rename from test/mjsunit/regress/regress-2034.js rename to test/mjsunit/harmony/regress/regress-2034.js diff --git a/test/mjsunit/regress/regress-2156.js b/test/mjsunit/harmony/regress/regress-2156.js similarity index 100% rename from test/mjsunit/regress/regress-2156.js rename to test/mjsunit/harmony/regress/regress-2156.js diff --git a/test/mjsunit/regress/regress-2186.js b/test/mjsunit/harmony/regress/regress-2186.js similarity index 100% rename from test/mjsunit/regress/regress-2186.js rename to test/mjsunit/harmony/regress/regress-2186.js diff --git a/test/mjsunit/regress/regress-2219.js b/test/mjsunit/harmony/regress/regress-2219.js similarity index 100% rename from test/mjsunit/regress/regress-2219.js rename to test/mjsunit/harmony/regress/regress-2219.js diff --git a/test/mjsunit/regress/regress-2225.js b/test/mjsunit/harmony/regress/regress-2225.js similarity index 100% rename from test/mjsunit/regress/regress-2225.js rename to test/mjsunit/harmony/regress/regress-2225.js diff --git a/test/mjsunit/regress/regress-2243.js b/test/mjsunit/harmony/regress/regress-2243.js similarity index 100% rename from test/mjsunit/regress/regress-2243.js rename to test/mjsunit/harmony/regress/regress-2243.js diff --git a/test/mjsunit/regress/regress-2322.js b/test/mjsunit/harmony/regress/regress-2322.js similarity index 100% rename from test/mjsunit/regress/regress-2322.js rename to test/mjsunit/harmony/regress/regress-2322.js diff --git a/test/mjsunit/regress/regress-2681.js b/test/mjsunit/harmony/regress/regress-2681.js similarity index 100% rename from test/mjsunit/regress/regress-2681.js rename to test/mjsunit/harmony/regress/regress-2681.js diff --git a/test/mjsunit/regress/regress-2691.js b/test/mjsunit/harmony/regress/regress-2691.js similarity index 100% rename from test/mjsunit/regress/regress-2691.js rename to test/mjsunit/harmony/regress/regress-2691.js diff --git a/test/mjsunit/regress/regress-2829.js b/test/mjsunit/harmony/regress/regress-2829.js similarity index 100% rename from test/mjsunit/regress/regress-2829.js rename to test/mjsunit/harmony/regress/regress-2829.js diff --git a/test/mjsunit/regress/regress-343928.js b/test/mjsunit/harmony/regress/regress-343928.js similarity index 100% rename from test/mjsunit/regress/regress-343928.js rename to test/mjsunit/harmony/regress/regress-343928.js diff --git a/test/mjsunit/regress/regress-crbug-248025.js b/test/mjsunit/harmony/regress/regress-crbug-248025.js similarity index 100% rename from test/mjsunit/regress/regress-crbug-248025.js rename to test/mjsunit/harmony/regress/regress-crbug-248025.js diff --git a/test/mjsunit/regress/regress-crbug-346141.js b/test/mjsunit/harmony/regress/regress-crbug-346141.js similarity index 100% rename from test/mjsunit/regress/regress-crbug-346141.js rename to test/mjsunit/harmony/regress/regress-crbug-346141.js diff --git a/test/mjsunit/regress/regress-crbug-347528.js b/test/mjsunit/harmony/regress/regress-crbug-347528.js similarity index 100% rename from test/mjsunit/regress/regress-crbug-347528.js rename to test/mjsunit/harmony/regress/regress-crbug-347528.js diff --git a/test/mjsunit/regress/regress-lookup-transition.js b/test/mjsunit/harmony/regress/regress-lookup-transition.js similarity index 100% rename from test/mjsunit/regress/regress-lookup-transition.js rename to test/mjsunit/harmony/regress/regress-lookup-transition.js diff --git a/test/mjsunit/regress/regress-observe-empty-double-array.js b/test/mjsunit/harmony/regress/regress-observe-empty-double-array.js similarity index 100% rename from test/mjsunit/regress/regress-observe-empty-double-array.js rename to test/mjsunit/harmony/regress/regress-observe-empty-double-array.js diff --git a/test/mjsunit/set-prototype-of.js b/test/mjsunit/harmony/set-prototype-of.js similarity index 100% rename from test/mjsunit/set-prototype-of.js rename to test/mjsunit/harmony/set-prototype-of.js diff --git a/test/mjsunit/proto-accessor.js b/test/mjsunit/proto-accessor.js index 5eb48bb..d38d362 100644 --- a/test/mjsunit/proto-accessor.js +++ b/test/mjsunit/proto-accessor.js @@ -27,6 +27,10 @@ // Flags: --harmony-symbols +// Fake Symbol if undefined, allowing test to run in non-Harmony mode as well. +this.Symbol = typeof Symbol != 'undefined' ? Symbol : String; + + var desc = Object.getOwnPropertyDescriptor(Object.prototype, "__proto__"); var getProto = desc.get; var setProto = desc.set; diff --git a/test/mjsunit/readonly.js b/test/mjsunit/readonly.js index 4d06b7c..050e256 100644 --- a/test/mjsunit/readonly.js +++ b/test/mjsunit/readonly.js @@ -25,7 +25,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -// Flags: --allow-natives-syntax --harmony-proxies --es5_readonly +// Flags: --allow-natives-syntax --es5_readonly +// Flags: --harmony-proxies // Different ways to create an object. @@ -120,8 +121,12 @@ function ReadonlyByProto(o, name) { o.__proto__ = p; } +// Allow Proxy to be undefined, so test can run in non-Harmony mode as well. +var global = this; + function ReadonlyByProxy(o, name) { - var p = Proxy.create({ + if (!global.Proxy) return ReadonlyByFreeze(o, name); // Dummy. + var p = global.Proxy.create({ getPropertyDescriptor: function() { return {value: -46, writable: false, configurable: true}; } -- 2.7.4