OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script> | 4 <script> |
5 function log(message) | 5 function log(message) |
6 { | 6 { |
7 document.getElementById('console').appendChild(document.createTextNode(messa
ge + "\n")); | 7 document.getElementById('console').appendChild(document.createTextNode(messa
ge + "\n")); |
8 } | 8 } |
9 | 9 |
10 function test() | 10 function test() |
11 { | 11 { |
12 log("Test that calling WebKitBlobBuilder.append with null value should not c
ause crash."); | 12 log("Test that calling WebKitBlobBuilder.append with null value should not c
ause crash."); |
13 var builder = new WebKitBlobBuilder(); | 13 var builder = new WebKitBlobBuilder(); |
14 builder.append(null); | 14 builder.append(null); |
15 | 15 |
16 log("DONE"); | 16 log("DONE"); |
17 } | 17 } |
18 | 18 |
19 if (window.layoutTestController) | 19 if (window.layoutTestController) |
20 layoutTestController.dumpAsText(); | 20 layoutTestController.dumpAsText(); |
21 </script> | 21 </script> |
22 </head> | 22 </head> |
23 <body onload="test()"> | 23 <body onload="test()"> |
24 <pre id='console'></pre> | 24 <pre id='console'></pre> |
25 </body> | 25 </body> |
26 </html> | 26 </html> |
OLD | NEW |