Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Side by Side Diff: LayoutTests/fast/dom/SelectorAPI/resig-SelectorsAPI-test.xhtml

Issue 739433003: Remove CDATASection (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.or g/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.or g/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg " 2 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg "
3 xml:lang="en" lang="en" dir="ltr" id="html" class="unitTest" title=":root sele ctor"> 3 xml:lang="en" lang="en" dir="ltr" id="html" class="unitTest" title=":root sele ctor">
4 <head> 4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <title>selectorTest</title> 6 <title>selectorTest</title>
7 <!-- (c) Disruptive Innovations 2008 --> 7 <!-- (c) Disruptive Innovations 2008 -->
8 <style type="text/css"><![CDATA[ 8 <style type="text/css"><![CDATA[
9 /* TEST 0 : BASIC TESTS */ 9 /* TEST 0 : BASIC TESTS */
10 /* element type selector */ 10 /* element type selector */
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 // window.location.hash = "#target"; 238 // window.location.hash = "#target";
239 239
240 var root = document.getElementById("root"); 240 var root = document.getElementById("root");
241 var root2 = document.getElementById("root2"); 241 var root2 = document.getElementById("root2");
242 var root3 = document.getElementById("root3"); 242 var root3 = document.getElementById("root3");
243 var results = []; 243 var results = [];
244 var tests = 0, passed = 0; 244 var tests = 0, passed = 0;
245 var cache = {}; 245 var cache = {};
246 246
247 var cssElem = document.getElementById("test"); 247 var cssElem = document.getElementById("test");
248 » » var css = (cssElem.innerHTML || cssElem.textContent || cssElem.i nnerText).split("\n"); 248 » » var css = cssElem.textContent.split("\n");
249 for ( var i = 0; i < css.length; i++ ) { 249 for ( var i = 0; i < css.length; i++ ) {
250 css[i] = css[i].replace(/\/\*.*?\*\//g, "") 250 css[i] = css[i].replace(/\/\*.*?\*\//g, "")
251 .replace(/^\s*|\s*$/g, "").split(/\s*{/); 251 .replace(/^\s*|\s*$/g, "").split(/\s*{/);
252 } 252 }
253 253
254 var ecssElem = document.getElementById("error"); 254 var ecssElem = document.getElementById("error");
255 » » var ecss = (ecssElem.innerHTML || ecssElem.textContent || ecssEl em.innerText).split("\n"); 255 » » var ecss = ecssElem.textContent.split("\n");
256 for ( var i = 0; i < ecss.length; i++ ) { 256 for ( var i = 0; i < ecss.length; i++ ) {
257 ecss[i] = ecss[i].replace(/\/\*.*?\*\//g, "") 257 ecss[i] = ecss[i].replace(/\/\*.*?\*\//g, "")
258 .replace(/^\s*|\s*$/g, "").split(/\s*{/); 258 .replace(/^\s*|\s*$/g, "").split(/\s*{/);
259 } 259 }
260 260
261 interfaceCheck(root, "Element"); 261 interfaceCheck(root, "Element");
262 runTest( css, "Element", root, true ); 262 runTest( css, "Element", root, true );
263 check( "Inside Element", root, true, false ); 263 check( "Inside Element", root, true, false );
264 cacheCheck( "Element", root ); 264 cacheCheck( "Element", root );
265 check( "Outside Element", root2, passed === 0 ? "autofail" : fal se, false ); 265 check( "Outside Element", root2, passed === 0 ? "autofail" : fal se, false );
(...skipping 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after
1357 </div> 1357 </div>
1358 </div> 1358 </div>
1359 </div> 1359 </div>
1360 </dl> 1360 </dl>
1361 1361
1362 <ol id="tests"></ol> 1362 <ol id="tests"></ol>
1363 </div> 1363 </div>
1364 <ol id="results"></ol> 1364 <ol id="results"></ol>
1365 </body> 1365 </body>
1366 </html> 1366 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/Node/script-tests/normalize-with-cdata.js ('k') | LayoutTests/fast/xpath/string-value.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698