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

Side by Side Diff: webkit/data/layout_tests/chrome/fast/dom/Window/window-lookup-precedence-2.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, 9 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 <script type="text/javascript" src="resources/window-properties.js"></script>
3
4 <script>
5 if (window.layoutTestController) {
6 layoutTestController.dumpAsText();
7 layoutTestController.waitUntilDone();
8 }
9 var my_input;
10 var HTMLInputElement_func;
11
12 var win = window.window;
13 var doc = window.document;
14
15 if (window.layoutTestController)
16 layoutTestController.dumpAsText();
17
18 function check(name) {
19 try {
20 var out = doc.getElementById("MYRESULT");
21 var orig_v = win[name];
22 my_input.setAttribute("id", name);
23 var new_v = win[name];
24 var r = (orig_v === new_v) ? 'PASS' : 'FAIL';
25 out.innerHTML = out.innerHTML + "window." + name + " : " + r + "<br>";
26 } catch (e) {
27 win.alert(name + ' ' + e);
28 }
29 }
30
31 function runTest() {
32 my_input = window.MYINPUT; // this is the original HTMLInputElement
33 HTMLInputElement_func = window.HTMLInputElement;
34
35 for (var i = 0; i < properties.length; i++) {
36 check(properties[i]);
37 }
38
39 if (window.layoutTestController)
40 layoutTestController.notifyDone();
41 }
42 </script>
43
44 <body onload="runTest()">
45 <form>
46 <input id="MYINPUT" value="mmm" name="qs" type="text"/>
47 </form>
48 <div id="MYRESULT"></div>
49
50 </body>
51 </html>
52
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698