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
This commit is contained in:
parent
e68e62c891
commit
1f2ff657cd
@ -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 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
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 @@
|
|||||||
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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user