gjs r114 - trunk/test/js



Author: otaylor
Date: Wed Nov 19 22:30:47 2008
New Revision: 114
URL: http://svn.gnome.org/viewvc/gjs?rev=114&view=rev

Log:
Fix style in testEverythingEncapsulated.js

Fix indentation and add missing 'let'.

https://bugzilla.gnome.org/show_bug.cgi?id=560808

Modified:
   trunk/test/js/testEverythingEncapsulated.js

Modified: trunk/test/js/testEverythingEncapsulated.js
==============================================================================
--- trunk/test/js/testEverythingEncapsulated.js	(original)
+++ trunk/test/js/testEverythingEncapsulated.js	Wed Nov 19 22:30:47 2008
@@ -1,19 +1,19 @@
 const Everything = imports.gi.Everything;
 
 function testSimpleBoxed() {
-  simple_boxed = new Everything.TestSimpleBoxedA();
-  simple_boxed.some_int = 42;
-  simple_boxed.some_int8 = 43;
-  simple_boxed.some_double = 42.5;
-  assertEquals(42, simple_boxed.some_int);
-  assertEquals(43, simple_boxed.some_int8);
-  assertEquals(42.5, simple_boxed.some_double);
+    let simple_boxed = new Everything.TestSimpleBoxedA();
+    simple_boxed.some_int = 42;
+    simple_boxed.some_int8 = 43;
+    simple_boxed.some_double = 42.5;
+    assertEquals(42, simple_boxed.some_int);
+    assertEquals(43, simple_boxed.some_int8);
+    assertEquals(42.5, simple_boxed.some_double);
 }
 
 function testBoxed() {
-  boxed = new Everything.TestBoxed();
-  boxed.some_int8 = 42;
-  assertEquals(42, boxed.some_int8);
+    let boxed = new Everything.TestBoxed();
+    boxed.some_int8 = 42;
+    assertEquals(42, boxed.some_int8);
 }
 
 gjstestRun();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]