blob: 4ae9c45fc15efaf5fe623601c771fd0eeafff42d [file] [log] [blame]
[email protected]340e0022014-03-28 20:23:281<html><body>
2
3<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=8131">bug 8131</a>:
4Some properties and methods of window and document objects cannot be converted to a string.</p>
5<p>Should say SUCCESS:</p>
6
7<script>
8
9if (window.testRunner)
10 testRunner.dumpAsText();
11
12try {
13 var currProperty;
14 try {
15 for (var prop in window) {
16 currProperty = prop;
17 window[prop] + "";
18 }
19
20 } catch (ex) {
21 document.write('FAILURE (window.' + currProperty + '):' + ex.description);
22 throw ex;
23 }
24
25 try {
26 for (var prop in document) {
27 currProperty = prop;
28 document[prop] + "";
29 }
30
31 } catch (ex) {
32 document.write('FAILURE (document.' + currProperty + '):' + ex.description);
33 throw ex;
34 }
35
36 document.write('SUCCESS');
37
38} catch (ex) {
39}
40
41</script>
42
43</body></html>