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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/assign-to-window-status.html

Issue 2907463003: Remove window.status plumbing, it's unused and the spec says it's a dummy (Closed)
Patch Set: Drop accidental change Created 3 years, 6 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
OLDNEW
(Empty)
1 <script>
2 if (window.testRunner) {
3 testRunner.dumpAsText();
4 testRunner.dumpStatusCallbacks();
5 }
6
7 function log(s)
8 {
9 document.getElementById("console").innerHTML += "<li>" + s + "</li>";
10 }
11
12 function shouldBe(a, b)
13 {
14 var evalA, evalB;
15 try {
16 evalA = eval(a);
17 evalB = eval(b);
18 } catch(e) {
19 evalA = e;
20 }
21
22 var message = (evalA === evalB)
23 ? "PASS: " + a + " should be '" + evalB + "' and is."
24 : "*** FAIL: " + a + " should be '" + evalB + "' but instead is " + evalA + ". ***";
25 log(message);
26 }
27
28 function test()
29 {
30 shouldBe("window.status = 'set window.status'; window.status", "'set window. status'");
31 shouldBe("status = 'set status'", "'set status'");
32 shouldBe("window.status = 1; window.status", "'1'");
33 shouldBe("status = 2; status", "'2'");
34 shouldBe("window.status={toString:function(){ return 'object.toString'; }}; window.status", "'object.toString'");
35 }
36 </script>
37 This tests that we can assign strings to the status property.
38 <ul id="console"></ul>
39 <script>
40 test();
41 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698