Commit 1f2ff657 authored by dslomov@chromium.org's avatar dslomov@chromium.org

Fix style nits in test

R=arv@chromium.org

Review URL: https://codereview.chromium.org/613253002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24336 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent e68e62c8
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
function Base() {} function Base() {}
Base.prototype = { Base.prototype = {
constructor: Base, constructor: Base,
x : "x from Base" x: 'x from Base'
}; };
function Derived() {} function Derived() {}
...@@ -133,10 +133,10 @@ ...@@ -133,10 +133,10 @@
}; };
Derived.prototype.testSetter = function() { Derived.prototype.testSetter = function() {
assertEquals("x from Base", super.x); assertEquals('x from Base', super.x);
super.x = "data property"; super.x = 'data property';
assertEquals("x from Base", super.x); assertEquals('x from Base', super.x);
assertEquals("data property", this.x); assertEquals('data property', this.x);
}.toMethod(Derived.prototype); }.toMethod(Derived.prototype);
new Derived().testSetter(); new Derived().testSetter();
...@@ -208,7 +208,7 @@ ...@@ -208,7 +208,7 @@
var ex; var ex;
try { try {
super.newProperty = 15; super.newProperty = 15;
} catch(e) { ex = e; } } catch (e) { ex = e; }
assertTrue(ex instanceof TypeError); assertTrue(ex instanceof TypeError);
}.toMethod(Derived.prototype); }.toMethod(Derived.prototype);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment