Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2280)

Delta Between Two Patch Sets: tests/com/google/caja/plugin/es53-test-domado-dom-guest.html

Issue 6827077: Mitigate top-level vars and typeof differences between ES5 and ES5/3 with rewriting (Closed) Base URL: http://google-caja.googlecode.com/svn/trunk/
Left Patch Set: Created 11 years, 4 months ago
Right Patch Set: Mitigate top-level vars and typeof differences between ES5 and ES5/3 with rewriting Created 11 years, 2 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
LEFTRIGHT
(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 2246 matching lines...) Expand 10 before | Expand all | Expand 10 after
2257 document.title = origTitle; 2257 document.title = origTitle;
2258 2258
2259 pass('testTitleProperty'); 2259 pass('testTitleProperty');
2260 }); 2260 });
2261 </script> 2261 </script>
2262 2262
2263 <p id="testWindowObject" class="testcontainer">Test Window Object</p> 2263 <p id="testWindowObject" class="testcontainer">Test Window Object</p>
2264 <script type="text/javascript"> 2264 <script type="text/javascript">
2265 var testWindowObjectVariable; 2265 var testWindowObjectVariable;
2266 2266
2267 // Disabled in ES5 mode because we currently cannot implement globals 2267 jsunitRegister('testWindowObject',
2268 // properly.
2269 jsunitRegisterIf(!inES5Mode,
2270 'testWindowObject',
2271 function testWindowObject() { 2268 function testWindowObject() {
2272 // Check to see that globals are properties of window 2269 // Check to see that globals are properties of window
2273 testWindowObjectVariable = 3; 2270 testWindowObjectVariable = 3;
2274 assertEquals(testWindowObjectVariable, window.testWindowObjectVariable); 2271 assertEquals(testWindowObjectVariable, window.testWindowObjectVariable);
2275 assertEquals(testWindowObjectVariable, 3); 2272 assertEquals(testWindowObjectVariable, 3);
2276 pass('testWindowObject'); 2273 pass('testWindowObject');
2277 }); 2274 });
2278 </script> 2275 </script>
2279 2276
2280 <p id="testAttributeNodes" class="testcontainer"> 2277 <p id="testAttributeNodes" class="testcontainer">
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after
3048 assertEquals('parent is not body', lastest.parentNode, body); 3045 assertEquals('parent is not body', lastest.parentNode, body);
3049 pass('testDocumentBodyAppendChild'); 3046 pass('testDocumentBodyAppendChild');
3050 }); 3047 });
3051 </script> 3048 </script>
3052 3049
3053 <script type="text/javascript"> 3050 <script type="text/javascript">
3054 // jsunitRun('testPropertyAttributeInteraction'); 3051 // jsunitRun('testPropertyAttributeInteraction');
3055 </script> 3052 </script>
3056 3053
3057 </body> 3054 </body>
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b