W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2010

link-checker commit: basic test cases for link checker

From: Mercurial notifier <nobody@w3.org>
Date: Thu, 05 Aug 2010 14:47:10 +0000
To: link-checker updates <www-validator-cvs@w3.org>
Message-Id: <E1Oh1iw-0005vP-88@blinky.w3.org>
changeset:   192:79c02dbc045a
user:        ot
date:        Tue Sep 18 05:24:20 2007 +0000
files:       docs/tests/links_borked.html docs/tests/links_ok.html docs/tests/links_redirects.html
description:
basic test cases for link checker


diff -r 9ff4cf306dae -r 79c02dbc045a docs/tests/links_borked.html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docs/tests/links_borked.html	Tue Sep 18 05:24:20 2007 +0000
@@ -0,0 +1,18 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+
+	<title>Sample HTML Documents with broken links (40X, bogus host, 500, etc)</title>
+	
+</head>
+
+<body>
+  <ul>
+    <li><a href="http://bogus.example">bogus hostname</a></li>
+    <li><a href="http://www.w3.org/wrongwrongwrong">404</a></li>
+  </ul>
+</body>
+</html>
diff -r 9ff4cf306dae -r 79c02dbc045a docs/tests/links_ok.html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docs/tests/links_ok.html	Tue Sep 18 05:24:20 2007 +0000
@@ -0,0 +1,16 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+
+	<title>Sample HTML Documents with no broken link</title>
+	
+</head>
+
+<body>
+<p><a href="http://www.w3.org/">W3C Homepage</a></p>
+
+</body>
+</html>
diff -r 9ff4cf306dae -r 79c02dbc045a docs/tests/links_redirects.html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docs/tests/links_redirects.html	Tue Sep 18 05:24:20 2007 +0000
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+
+	<title>Sample HTML Documents with no broken link, but different types of redirects</title>
+	
+</head>
+
+<body>
+<ul>
+  <li><a href="http://www.w3.org/QA">W3C /QA (directory redirect)</a></li>
+  <li><a href="http://www.w3.org/QA/weekinqa">/QA/weekinqa (permanent redirect)</a></li>
+  <li><a href="/QA/monthinqa">/QA/monthinqa (temp redirect)</a></li>
+</ul>
+
+</body>
+</html>
Received on Thursday, 5 August 2010 14:47:27 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:43 UTC