LEFT | RIGHT |
(no file at all) | |
1 <!-- | 1 <!-- |
2 - Copyright (C) 2011 Google Inc. | 2 - Copyright (C) 2011 Google Inc. |
3 - | 3 - |
4 - Licensed under the Apache License, Version 2.0 (the "License"); | 4 - Licensed under the Apache License, Version 2.0 (the "License"); |
5 - you may not use this file except in compliance with the License. | 5 - you may not use this file except in compliance with the License. |
6 - You may obtain a copy of the License at | 6 - You may obtain a copy of the License at |
7 - | 7 - |
8 - http://www.apache.org/licenses/LICENSE-2.0 | 8 - http://www.apache.org/licenses/LICENSE-2.0 |
9 - | 9 - |
10 - Unless required by applicable law or agreed to in writing, software | 10 - Unless required by applicable law or agreed to in writing, software |
(...skipping 22 matching lines...) Expand all Loading... |
33 assertEquals('Number of B elements', 1, bElements.length); | 33 assertEquals('Number of B elements', 1, bElements.length); |
34 | 34 |
35 assertEquals('B element content', 'Hello,', bElements[0].innerText); | 35 assertEquals('B element content', 'Hello,', bElements[0].innerText); |
36 | 36 |
37 pass('testDocumentWriteRecursive'); | 37 pass('testDocumentWriteRecursive'); |
38 }); | 38 }); |
39 </script> | 39 </script> |
40 | 40 |
41 <div class="testcontainer" id="testTrailingLineComment"> | 41 <div class="testcontainer" id="testTrailingLineComment"> |
42 <script> | 42 <script> |
43 window.result = 'trailing line comment';// delibrate comment</script> | 43 window.result = 'trailing line comment';// deliberate comment</script> |
44 </div> | 44 </div> |
45 <script> | 45 <script> |
46 jsunitRegister('testTrailingLineComment', | 46 jsunitRegister('testTrailingLineComment', |
47 function testTrailingLineComment() { | 47 function testTrailingLineComment() { |
48 assertEquals('Full text', 'trailing line comment', window.result); | 48 assertEquals('Full text', 'trailing line comment', window.result); |
49 pass('testTrailingLineComment'); | 49 pass('testTrailingLineComment'); |
50 }); | 50 }); |
51 | 51 |
52 // jsunit complains if there are zero tests | 52 // jsunit complains if there are zero tests |
53 jsunitRegister('testNop', function testNop() { pass('testNop'); }); | 53 jsunitRegister('testNop', function testNop() { pass('testNop'); }); |
54 </script> | 54 </script> |
LEFT | RIGHT |