911156735e5de65a4c9e1f3ed6ec0f3b72feb427
[platform/framework/web/crosswalk-tizen.git] /
1 var foo = true;
2 var bar = '123';
3 var lorem = /\w+/;
4 var parentheses = (123);
5
6 var dolor;
7
8 var a,
9   b = true,
10   c = 3,
11   d = false;
12
13 var amet = qwe();
14 var asi = true
15
16
17 // test for issue #4
18 var
19   // foo var
20   foo,
21   // bar variable
22   bar = 'dolor amet';
23
24
25 // issue #28 : comma first
26 var x = 33,
27   y = 12,
28
29
30   // comment
31   w = 45;
32
33
34 // issue #31: multiple var declaration + function expression = wrong indent
35 (function() {
36   var
37     // A central reference to the root jQuery(document)
38     rootjQuery,
39
40     // Define a local copy of jQuery
41     jQuery = function(selector, context) {
42       // The jQuery object is actually just the init constructor 'enhanced'
43       return new jQuery.fn.init(selector, context, rootjQuery);
44     },
45
46     // literal object
47     obj = {
48       num: 123,
49       str: 'literal'
50     };
51 }());
52
53 var lorem = ipsum ||
54   dolor &&
55   (sit || amet);
56