1 |
wakaba |
1.1 |
#!/usr/bin/perl |
2 |
|
|
use strict; |
3 |
|
|
|
4 |
|
|
require 'mixed-replace-generation.pl'; |
5 |
|
|
|
6 |
|
|
$| = 1; |
7 |
|
|
|
8 |
|
|
my $mr = mixed_replace_generation->new; |
9 |
|
|
|
10 |
|
|
$mr->output_cgi_header; |
11 |
|
|
|
12 |
|
|
for my $i (1..10) { |
13 |
|
|
$mr->output_boundary; |
14 |
|
|
|
15 |
|
|
$mr->output_line ('Content-Type: text/html; charset=us-ascii'); |
16 |
|
|
|
17 |
|
|
$mr->output_line (''); |
18 |
|
|
|
19 |
|
|
$mr->output_line ('<script src="../../../support/result0.js"></script>'); |
20 |
|
|
$mr->output_line ('<p>Part ' . $i . '/10</p>'); |
21 |
|
|
$mr->output_line ('<p><code>location.href</code> is <script type="text/javascript">writeResult (location.href)</script>.</p>'); |
22 |
|
|
$mr->output_line ('<p><a id="a">view-source:<var>this</var></a></p>'); |
23 |
|
|
$mr->output_line ('<script>document.getElementById ("a").href = "view-source:" + location.href</script>'); |
24 |
|
|
|
25 |
|
|
sleep 1; |
26 |
|
|
} |
27 |
|
|
|
28 |
|
|
$mr->output_last_boundary; |