Fix style nits in test
authordslomov@chromium.org <dslomov@chromium.org>
Tue, 30 Sep 2014 15:30:10 +0000 (15:30 +0000)
committerdslomov@chromium.org <dslomov@chromium.org>
Tue, 30 Sep 2014 15:30:10 +0000 (15:30 +0000)
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

test/mjsunit/harmony/super.js

index 5d3ee2b..e23328b 100644 (file)
   function Base() {}
   Base.prototype = {
     constructor: Base,
-    x : "x from Base"
+    x: 'x from Base'
   };
 
   function Derived() {}
   };
 
   Derived.prototype.testSetter = function() {
-    assertEquals("x from Base", super.x);
-    super.x = "data property";
-    assertEquals("x from Base", super.x);
-    assertEquals("data property", this.x);
+    assertEquals('x from Base', super.x);
+    super.x = 'data property';
+    assertEquals('x from Base', super.x);
+    assertEquals('data property', this.x);
   }.toMethod(Derived.prototype);
 
   new Derived().testSetter();
     var ex;
     try {
       super.newProperty = 15;
-    } catch(e) { ex = e; }
+    } catch (e) { ex = e; }
     assertTrue(ex instanceof TypeError);
   }.toMethod(Derived.prototype);