tizen beta release
[profile/ivi/webkit-efl.git] / LayoutTests / http / tests / multipart / policy-ignore-crash.php
1 <?php
2 header('Content-type: multipart/x-mixed-replace;boundary=asdf');
3 ?>--asdf
4 Content-type: text/html
5
6 <p>This test passes if it does not crash.</p>
7 <script>
8 if (window.layoutTestController)
9     layoutTestController.dumpAsText();
10 </script>
11
12 <?php
13 # Add some padding because CFNetwork merges small multipart segments together.
14 echo str_pad('', 5000);
15
16 ob_flush();
17 flush();
18 ?>
19 --asdf
20 Content-type: text/random
21
22 This chunk doesn't have a content type, which can cause the policy
23 for this load to be ignored. This causes the request to be canceled.
24
25 <?php
26 # Add some padding because CFNetwork merges small multipart segments together.
27 echo str_pad('', 5000);
28 ?>
29
30 --asdf--