+2008-02-14 Oliver Hunt <oliver@apple.com>
+
+ Reviewed by Jon H.
+
+ Make assign-to-window-status testcase to be more thorough
+
+ * fast/dom/assign-to-window-status-expected.txt:
+ * fast/dom/assign-to-window-status.html:
+
2008-02-14 Darin Adler <darin@apple.com>
- update this test further, so that it succeeds
UI DELEGATE STATUS CALLBACK: setStatusText:set status
UI DELEGATE STATUS CALLBACK: setStatusText:1
UI DELEGATE STATUS CALLBACK: setStatusText:2
-UI DELEGATE STATUS CALLBACK: setStatusText:[object Object]
+UI DELEGATE STATUS CALLBACK: setStatusText:object.toString
This tests that we can assign strings to the status property.
PASS: window.status = 'set window.status'; window.status should be 'set window.status' and is.
PASS: status = 'set status' should be 'set status' and is.
PASS: window.status = 1; window.status should be '1' and is.
PASS: status = 2; status should be '2' and is.
+PASS: window.status={toString:function(){ return 'object.toString'; }}; window.status should be 'object.toString' and is.
shouldBe("status = 'set status'", "'set status'");
shouldBe("window.status = 1; window.status", "'1'");
shouldBe("status = 2; status", "'2'");
- var o = {l:7};
- window.status=o;
-
+ shouldBe("window.status={toString:function(){ return 'object.toString'; }}; window.status", "'object.toString'");
}
</script>
This tests that we can assign strings to the status property.