http://bugzilla.opendarwin.org/show_bug.cgi?id=4508
Layout tests access an external server
* fast/backgrounds/repeat/noRepeatCorrectClip.html: Use a local resource (it was already present,
but the test still pointed to a remote one).
* fast/dom/HTMLImageElement/image-src-absolute-url-expected.txt:
* fast/dom/HTMLImageElement/image-src-absolute-url.html: Use a non-existent file URL instead of
a non-existent http one.
* fast/loader/docLoaderFrame-expected.checksum: Removed.
* fast/loader/docLoaderFrame-expected.png: Removed.
* fast/loader/docLoaderFrame-expected.txt: Removed.
* fast/loader/docLoaderFrame.html: Removed.
* http/tests/xmlhttprequest/docLoaderFrame-expected.txt: Added.
* http/tests/xmlhttprequest/docLoaderFrame.html: Added.
* http/tests/xmlhttprequest/resources/docLoaderFrame-data.html: Added.
Use a local resource. Also, turned the test into a text one, and used waitUntilDone to make it
actually work.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16196
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-09-03 Alexey Proskuryakov <ap@nypop.com>
+
+ Reviewed by Tim H.
+
+ http://bugzilla.opendarwin.org/show_bug.cgi?id=4508
+ Layout tests access an external server
+
+ * fast/backgrounds/repeat/noRepeatCorrectClip.html: Use a local resource (it was already present,
+ but the test still pointed to a remote one).
+ * fast/dom/HTMLImageElement/image-src-absolute-url-expected.txt:
+ * fast/dom/HTMLImageElement/image-src-absolute-url.html: Use a non-existent file URL instead of
+ a non-existent http one.
+ * fast/loader/docLoaderFrame-expected.checksum: Removed.
+ * fast/loader/docLoaderFrame-expected.png: Removed.
+ * fast/loader/docLoaderFrame-expected.txt: Removed.
+ * fast/loader/docLoaderFrame.html: Removed.
+ * http/tests/xmlhttprequest/docLoaderFrame-expected.txt: Added.
+ * http/tests/xmlhttprequest/docLoaderFrame.html: Added.
+ * http/tests/xmlhttprequest/resources/docLoaderFrame-data.html: Added.
+ Use a local resource. Also, turned the test into a text one, and used waitUntilDone to make it
+ actually work.
+
2006-09-02 Graham Dennis <graham.dennis@gmail.com>
Reviewed by Justin.
<head>
<style>
ul#nav li {
- background:url(http://i.a.cnn.net/cnn/.element/img/1.3/nav/nav.blue.gif)
+ background:url(resources/nav.blue.gif)
no-repeat;
}
</style>
The image object.src is expected to be the full path to the image, relative to the document base.
To match WinIE (but not FireFox), we resolve the image path in the getter, rather than the setter, allowing for pages to change the Document base URL via javascript and have object.src reflect said change.
-SUCCESS (document.images[0].src = http://www.apple.com/test.jpg)
-SUCCESS (IconImages['grey'].src = http://www.apple.com/test.jpg)
+SUCCESS (document.images[0].src = file:///does/not/exist/test.jpg)
+SUCCESS (IconImages['grey'].src = file:///does/not/exist/test.jpg)
After changing the base URL:
-SUCCESS (document.images[0].src = http://www.apple.com/test.jpg)
-SUCCESS (IconImages['grey'].src = http://www.example.com/test.jpg)
+SUCCESS (document.images[0].src = file:///does/not/exist/test.jpg)
+SUCCESS (IconImages['grey'].src = file:///also/does/not/exist/test.jpg)
<html>
<head>
<title>Image Tester</title>
- <base id="foo" href="http://www.apple.com/">
+ <base id="foo" href="file:///does/not/exist/">
<script type="text/javascript" language="javascript">
var IconImages = null;
document.images["grey"].src = IconImages["grey"].src;
var beforeDiv = document.getElementById("before");
- beforeDiv.innerHTML = stringResult("document.images[0].src", "http://www.apple.com/test.jpg");
- beforeDiv.innerHTML += "<br>" + stringResult("IconImages['grey'].src", "http://www.apple.com/test.jpg");
+ beforeDiv.innerHTML = stringResult("document.images[0].src", "file:///does/not/exist/test.jpg");
+ beforeDiv.innerHTML += "<br>" + stringResult("IconImages['grey'].src", "file:///does/not/exist/test.jpg");
- document.getElementById("foo").setAttribute("href", "http://www.example.com/");
+ document.getElementById("foo").setAttribute("href", "file:///also/does/not/exist/");
var afterDiv = document.getElementById("after");
- afterDiv.innerHTML = stringResult("document.images[0].src", "http://www.apple.com/test.jpg");
- afterDiv.innerHTML += "<br>" + stringResult("IconImages['grey'].src", "http://www.example.com/test.jpg");
+ afterDiv.innerHTML = stringResult("document.images[0].src", "file:///does/not/exist/test.jpg");
+ afterDiv.innerHTML += "<br>" + stringResult("IconImages['grey'].src", "file:///also/does/not/exist/test.jpg");
}
</script>
</head>
+++ /dev/null
-853de00567d121bea0b7bece66a5d61c
\ No newline at end of file
+++ /dev/null
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
- RenderBlock {HTML} at (0,0) size 800x600
- RenderBody {BODY} at (8,0) size 784x600
+++ /dev/null
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
-<title>Crash XML Parser</title>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-<script language="JavaScript" type="text/JavaScript">
-
-var rq;
-
-function loadXMLDoc( url )
-{
- url = 'http://www.npr.org/rss/';
-
- rq = false;
- if (window.XMLHttpRequest) {
- try {
- rq = new XMLHttpRequest();
- rq.overrideMimeType('text/xml');
- } catch(e) {
- rq = false;
- }
- }
-
- if (rq) {
- rq.onreadystatechange = processReqChange;
- rq.open('GET', url, true);
- rq.send();
- }
-}
-
-function processReqChange()
-{
- if (rq.readyState == 4) {
- if (rq.status == 200) {
- var xmlDoc = rq.responseXML;
- } else {
- alert('There was a problem retrieving the XML data: ' + rq.statusText );
- }
- }
-}
-</script>
-</head>
-<body topmargin="0" marginheight="0" onLoad="javascript:loadXMLDoc();">
-</body>
-</html>
\ No newline at end of file
--- /dev/null
+Test for rdar://problem/4298052: Crash in KWQCheckIfReloading at http://www.inquisitorx.com/beta/
+
+SUCCESS (did not crash)
+
+
--- /dev/null
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<title>Crash XML Parser</title>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<script language="JavaScript" type="text/JavaScript">
+
+var rq;
+
+function loadXMLDoc()
+{
+ url = 'resources/docLoaderFrame-data.html';
+
+ rq = false;
+
+ try {
+ if (window.XMLHttpRequest) {
+ rq = new XMLHttpRequest();
+ rq.overrideMimeType('text/xml');
+ rq.onreadystatechange = processReqChange;
+ rq.open('GET', url, true);
+ rq.send();
+ }
+ } catch (ex) {
+ rq = false;
+ alert(ex);
+ }
+}
+
+function processReqChange()
+{
+ if (rq.readyState == 4) {
+ if (rq.status == 200) {
+ var xmlDoc = rq.responseXML;
+ document.getElementById("result").textContent = "SUCCESS (did not crash)";
+ } else {
+ alert('There was a problem retrieving the XML data: ' + rq.statusText);
+ }
+
+ if (window.layoutTestController) {
+ layoutTestController.notifyDone();
+ }
+ }
+}
+</script>
+</head>
+
+<body onLoad="javascript:loadXMLDoc();">
+<p>Test for <a href="rdar://problem/4298052">rdar://problem/4298052</a>: Crash in KWQCheckIfReloading at http://www.inquisitorx.com/beta/</p>
+<p id="result"></p>
+<script>
+ if (window.layoutTestController) {
+ layoutTestController.dumpAsText();
+ layoutTestController.waitUntilDone();
+ }
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title></title>
+ <style type="text/css" media="screen">@import "/include/css/mainstyles.css";</style>
+ </head>
+ <body></body>
+</html>