Change the mechanism behind summit-crash.html

This commit is contained in:
Keegan McAllister 2014-01-08 15:52:49 -08:00
parent 1d19023486
commit e7aa445e52
3 changed files with 4 additions and 14 deletions

View file

@ -59,6 +59,9 @@ pub fn parse_url(str_url: &str, base_url: Option<Url>) -> Url {
match scheme.as_slice() { match scheme.as_slice() {
"about" => { "about" => {
match page.as_slice() { match page.as_slice() {
"crash" => {
fail!("about:crash");
}
"failure" => { "failure" => {
let mut path = os::getcwd(); let mut path = os::getcwd();
path.push("../src/test/html/failure.html"); path.push("../src/test/html/failure.html");

View file

@ -1,13 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>crash page</title>
</head>
<body>
<audio>
<source src="horse.ogg" type="audio/ogg">
<source src="horse.mp3" type="audio/mpeg">
</audio>
<pre>pre</pre>
</body>
</html>

View file

@ -10,6 +10,6 @@
</style> </style>
</head> </head>
<body> <body>
<a href="summit-bad-page.html">here be dragons</a> <a href="about:crash">here be dragons</a>
</body> </body>
</html> </html>