* test/lisp/net/tramp-tests.el (tramp-test41-delay-load): New test.
[emacs.git] / test / manual / indent / js-jsx.js
blob7401939d28265d4d1271401c669238dc04da69e2
1 // -*- mode: js-jsx; -*-
3 var foo = <div></div>;
5 return (
6   <div>
7   </div>
8   <div>
9     <div></div>
10     <div>
11       <div></div>
12     </div>
13   </div>
16 React.render(
17   <div>
18     <div></div>
19   </div>,
20   {
21     a: 1
22   },
23   <div>
24     <div></div>
25   </div>
28 return (
29   // Sneaky!
30   <div></div>
33 return (
34   <div></div>
35   // Sneaky!
38 React.render(
39   <input
40     />,
41   {
42     a: 1
43   }
46 return (
47   <div>
48     {array.map(function () {
49       return {
50         a: 1
51       };
52     })}
53   </div>
56 return (
57   <div attribute={array.map(function () {
58          return {
59            a: 1
60          };
62          return {
63            a: 1
64          };
66          return {
67            a: 1
68          };
69        })}>
70   </div>
73 // Local Variables:
74 // indent-tabs-mode: nil
75 // js-indent-level: 2
76 // End:
78 // The following test has intentionally unclosed elements and should
79 // be placed below all other tests to prevent awkward indentation.
81 return (
82   <div>
83     {array.map(function () {
84       return {
85         a: 1