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

Side by Side Diff: webkit/data/layout_tests/chrome/fast/dom/htmlcollection-detectability.html

Issue 55025: Remove tests that have been upstreamed. Update test_expectations list... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 8 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
(Empty)
1 <html>
2 <body>
3
4 <p>
5 This test verified that only document.all is undetectable. Other
6 HTMLCollections should be detectable.
7 </p>
8
9 <script>
10 if (window.layoutTestController) {
11 layoutTestController.dumpAsText();
12 }
13
14 function shouldBeUndetectable(name) {
15 if (document[name]) {
16 document.write("Failed: document." + name + " is detectable.<br>");
17 } else {
18 document.write("Passed: document." + name + " is undetectable.<br>");
19 }
20 };
21
22 function shouldBeDetectable(name) {
23 if (document[name]) {
24 document.write("Passed: document." + name + " is detectable.<br>");
25 } else {
26 document.write("Failed: document." + name + " is detectable.<br>");
27 }
28 };
29
30 var undetectable = ["all"];
31 var detectable = ["images", "applets", "links", "forms", "anchors",
32 "embeds", "plugins", "scripts"];
33
34 for (var i = 0; i < undetectable.length; i++) {
35 shouldBeUndetectable(undetectable[i]);
36 }
37
38 for (var i = 0; i < detectable.length; i++) {
39 shouldBeDetectable(detectable[i]);
40 }
41 </script>
42 </body>
43 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698