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

Side by Side Diff: LayoutTests/svg/custom/svg-features.html

Issue 133703014: Remove Node.isSupported (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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 <script> 1 <script>
2 2
3 function test() { 3 function test() {
4 if (window.testRunner) 4 if (window.testRunner)
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 6
7 var undefined; 7 var undefined;
8 8
9 var features = [ 9 var features = [
10 ["org.w3c.svg", "1.0"], 10 ["org.w3c.svg", "1.0"],
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 ["http://www.w3.org/TR/SVG11/feature#View", "1.1"], 62 ["http://www.w3.org/TR/SVG11/feature#View", "1.1"],
63 ["http://www.w3.org/TR/SVG11/feature#Script", "1.1"], 63 ["http://www.w3.org/TR/SVG11/feature#Script", "1.1"],
64 ["http://www.w3.org/TR/SVG11/feature#Animation", "1.1"], 64 ["http://www.w3.org/TR/SVG11/feature#Animation", "1.1"],
65 ["http://www.w3.org/TR/SVG11/feature#Font", "1.1"], 65 ["http://www.w3.org/TR/SVG11/feature#Font", "1.1"],
66 ["http://www.w3.org/TR/SVG11/feature#BasicFont", "1.1"], 66 ["http://www.w3.org/TR/SVG11/feature#BasicFont", "1.1"],
67 ["http://www.w3.org/TR/SVG11/feature#Extensibility", "1.1"]] 67 ["http://www.w3.org/TR/SVG11/feature#Extensibility", "1.1"]]
68 68
69 for (var i = 0; i < features.length; ++i) 69 for (var i = 0; i < features.length; ++i)
70 { 70 {
71 var item = features[i]; 71 var item = features[i];
72 if (item[1] == "omitted") { 72 if (item[1] == "omitted")
73 var hasFeature = document.implementation.hasFeature(item[0]); 73 var hasFeature = document.implementation.hasFeature(item[0]);
74 var isSupported = document.body.isSupported(item[0]); 74 else
75 } else {
76 var hasFeature = document.implementation.hasFeature(item[0], item[1] ); 75 var hasFeature = document.implementation.hasFeature(item[0], item[1] );
77 var isSupported = document.body.isSupported(item[0], item[1]);
78 }
79 76
80 var item0String = item[0]; 77 var item0String = item[0];
81 if (typeof item0String == "string") 78 if (typeof item0String == "string")
82 item0String = '"' + item0String + '"'; 79 item0String = '"' + item0String + '"';
83 var item1String = item[1]; 80 var item1String = item[1];
84 if (typeof item1String == "string" && item[1] != "omitted") 81 if (typeof item1String == "string" && item[1] != "omitted")
85 item1String = '"' + item1String + '"'; 82 item1String = '"' + item1String + '"';
86 var message = item0String + ', ' + item1String + ': ' + hasFeature + ', ' + isSupported; 83 var message = item0String + ', ' + item1String + ': ' + hasFeature;
87 84
88 var div = document.createElement('div'); 85 var div = document.createElement('div');
89 div.innerHTML = message; 86 div.innerHTML = message;
90 document.body.appendChild(div); 87 document.body.appendChild(div);
91 } 88 }
92 } 89 }
93 90
94 </script> 91 </script>
95 92
96 <body onload="test()"> 93 <body onload="test()">
97 </body> 94 </body>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/features-expected.txt ('k') | LayoutTests/svg/custom/svg-features-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698