052edc85c1795cdbed4414fc743f8b8adb3778a8
[platform/framework/web/crosswalk-tizen.git] /
1 foo=bar; lorem   =123
2 dolor =   "amet"
3
4 // yes, this is valid JS
5 maecennas
6
7 +=
8
9     "ullamcor"
10 // end multi-line
11
12
13 foo =   fn(1);
14
15
16 // assignment operators
17
18 x+= y
19 x   -= y
20 x *=   y
21 x /=   y
22 x%= y
23 x<<=    y
24 x   >>= y
25 x  
26     >>>= 
27             y
28 x&= y
29 x^=y
30 x|=y
31
32
33 // multiple same line
34 this.a=b;this.c=d;this.e=f;this.g=h||0;
35
36 function h(a,b,c,d,e){this._listener=b;this._isOnce=c;this.context=d;this._signal=a;this._priority=e||0}
37
38
39 // test for issue #5 (related to parenthesis)
40 doc=(context&&context.nodeType?context.ownerDocument||context:document);
41
42
43 // issue #8 (multiple assignment + OR + indent)
44 function iss8(){
45     if (proxy) {
46         proxy.guid = fn.guid = fn.guid || jQuery.guid++;
47     }
48 }