OLD | NEW |
1 // Copyright (c) 2008 Geoffrey Sneddon | 1 // Copyright (c) 2008 Geoffrey Sneddon |
2 // | 2 // |
3 // Permission is hereby granted, free of charge, to any person obtaining a copy | 3 // Permission is hereby granted, free of charge, to any person obtaining a copy |
4 // of this software and associated documentation files (the "Software"), to deal | 4 // of this software and associated documentation files (the "Software"), to deal |
5 // in the Software without restriction, including without limitation the rights | 5 // in the Software without restriction, including without limitation the rights |
6 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | 6 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
7 // copies of the Software, and to permit persons to whom the Software is | 7 // copies of the Software, and to permit persons to whom the Software is |
8 // furnished to do so, subject to the following conditions: | 8 // furnished to do so, subject to the following conditions: |
9 // | 9 // |
10 // The above copyright notice and this permission notice shall be included in | 10 // The above copyright notice and this permission notice shall be included in |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 iframe.contentWindow.document.open() | 47 iframe.contentWindow.document.open() |
48 iframe.contentWindow.document.write("Test"); | 48 iframe.contentWindow.document.write("Test"); |
49 iframe.contentWindow.document.close(); | 49 iframe.contentWindow.document.close(); |
50 var write = iframe.contentWindow.document.lastChild.lastChild.lastChild !== null
; | 50 var write = iframe.contentWindow.document.lastChild.lastChild.lastChild !== null
; |
51 var ignoreTitle = iframe.contentWindow.document.getElementsByTagName("title")[0]
!== undefined; | 51 var ignoreTitle = iframe.contentWindow.document.getElementsByTagName("title")[0]
!== undefined; |
52 | 52 |
53 if (window.forceDataURLs) | 53 if (window.forceDataURLs) |
54 write = false; | 54 write = false; |
55 | 55 |
| 56 if (!write && window.internals && internals.settings.setUseThreadedHTMLParserFor
DataURLs) |
| 57 internals.settings.setUseThreadedHTMLParserForDataURLs(true); |
| 58 |
56 window.onload = function() | 59 window.onload = function() |
57 { | 60 { |
58 stat.data = "Running"; | 61 stat.data = "Running"; |
59 run(); | 62 run(); |
60 } | 63 } |
61 | 64 |
62 function run() | 65 function run() |
63 { | 66 { |
64 var xhr = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("
Microsoft.XMLHTTP"); | 67 var xhr = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("
Microsoft.XMLHTTP"); |
65 if (file = test_files.shift()) | 68 if (file = test_files.shift()) |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 { | 201 { |
199 result = Markup.get(result); | 202 result = Markup.get(result); |
200 if (result !== expected) | 203 if (result !== expected) |
201 { | 204 { |
202 fail_list.push(test_number); | 205 fail_list.push(test_number); |
203 log += "\n\nTest " + (test_number) + " of " + (test_number + tests.lengt
h) + " in " + file + " failed. Input:\n" + input + "\nGot:\n" + result + "\nExpe
cted:\n" + expected; | 206 log += "\n\nTest " + (test_number) + " of " + (test_number + tests.lengt
h) + " in " + file + " failed. Input:\n" + input + "\nGot:\n" + result + "\nExpe
cted:\n" + expected; |
204 } | 207 } |
205 test_number++; | 208 test_number++; |
206 test(); | 209 test(); |
207 } | 210 } |
OLD | NEW |