<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[23915] trunk/LayoutTests</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/23915">23915</a></dd>
<dt>Author</dt> <dd>darin</dd>
<dt>Date</dt> <dd>2007-07-01 10:23:29 -0700 (Sun, 01 Jul 2007)</dd>
</dl>
<h3>Log Message</h3>
<pre> Fixed a no-SVG test failure by moving a test that requires SVG into the svg directory.
* fast/dom/svg-element-attribute-js-null-expected.txt: Removed.
* fast/dom/svg-element-attribute-js-null.xhtml: Removed.
* svg/dom/svg-element-attribute-js-null-expected.txt: Copied from fast/dom/svg-element-attribute-js-null-expected.txt.
* svg/dom/svg-element-attribute-js-null.xhtml: Copied from fast/dom/svg-element-attribute-js-null.xhtml.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestssvgdomsvgelementattributejsnullexpectedtxt">trunk/LayoutTests/svg/dom/svg-element-attribute-js-null-expected.txt</a></li>
<li><a href="#trunkLayoutTestssvgdomsvgelementattributejsnullxhtml">trunk/LayoutTests/svg/dom/svg-element-attribute-js-null.xhtml</a></li>
</ul>
<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsfastdomsvgelementattributejsnullexpectedtxt">trunk/LayoutTests/fast/dom/svg-element-attribute-js-null-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastdomsvgelementattributejsnullxhtml">trunk/LayoutTests/fast/dom/svg-element-attribute-js-null.xhtml</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (23914 => 23915)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2007-07-01 17:05:56 UTC (rev 23914)
+++ trunk/LayoutTests/ChangeLog        2007-07-01 17:23:29 UTC (rev 23915)
</span><span class="lines">@@ -1,5 +1,14 @@
</span><span class="cx"> 2007-07-01 Darin Adler <darin@apple.com>
</span><span class="cx">
</span><ins>+ Fixed a no-SVG test failure by moving a test that requires SVG into the svg directory.
+
+ * fast/dom/svg-element-attribute-js-null-expected.txt: Removed.
+ * fast/dom/svg-element-attribute-js-null.xhtml: Removed.
+ * svg/dom/svg-element-attribute-js-null-expected.txt: Copied from fast/dom/svg-element-attribute-js-null-expected.txt.
+ * svg/dom/svg-element-attribute-js-null.xhtml: Copied from fast/dom/svg-element-attribute-js-null.xhtml.
+
+2007-07-01 Darin Adler <darin@apple.com>
+
</ins><span class="cx"> Added a missing file for the test for <rdar://problem/5303567> REGRESSION: XMLHttpRequest.responseXML
</span><span class="cx">
</span><span class="cx"> * fast/loader/resources/plist.app: Added. Just some random XML file I found somewhere; seems to make
</span></span></pre></div>
<a id="trunkLayoutTestsfastdomsvgelementattributejsnullexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/fast/dom/svg-element-attribute-js-null-expected.txt (23914 => 23915)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/svg-element-attribute-js-null-expected.txt        2007-07-01 17:05:56 UTC (rev 23914)
+++ trunk/LayoutTests/fast/dom/svg-element-attribute-js-null-expected.txt        2007-07-01 17:23:29 UTC (rev 23915)
</span><span class="lines">@@ -1,12 +0,0 @@
</span><del>-This test setting various attributes of a SVG elements to JavaScript null.
-
-TEST SUCCEEDED: The value was the empty string. [tested SVGElement.id]
-TEST SUCCEEDED: The value was the empty string. [tested SVGElement.xmlbase]
-
-TEST SUCCEEDED: The value was the string '0deg'. [tested SVGAngle.valueAsString]
-
-TEST SUCCEEDED: The value was the string '0'. [tested SVGLength.valueAsString]
-
-TEST SUCCEEDED: The value was the empty string. [tested SVGScriptElement.type]
-
-
</del></span></pre></div>
<a id="trunkLayoutTestsfastdomsvgelementattributejsnullxhtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/fast/dom/svg-element-attribute-js-null.xhtml (23914 => 23915)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/svg-element-attribute-js-null.xhtml        2007-07-01 17:05:56 UTC (rev 23914)
+++ trunk/LayoutTests/fast/dom/svg-element-attribute-js-null.xhtml        2007-07-01 17:23:29 UTC (rev 23915)
</span><span class="lines">@@ -1,100 +0,0 @@
</span><del>-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <style type="text/css">
- .pass { color: green; }
- .fail { color: red; }
- </style>
- <script type="text/javascript" charset="utf-8">
- function printOut(msg)
- {
- var console = document.getElementById("console");
- var span = document.createElementNS('http://www.w3.org/1999/xhtml', 'span');
- span.appendChild(document.createTextNode(msg));
- span.appendChild(document.createElementNS('http://www.w3.org/1999/xhtml', 'br'));
- console.appendChild(span);
- }
-
- function resultStringifier(result)
- {
- if (result === "")
- return "the empty string";
- else if (result === undefined)
- return "undefined";
- else if (result === null)
- return "null";
- return "the string '" + result + "'";
- }
-
- function nullTestElementAttribute(elementType, element, attr, expected)
- {
- element[attr] = null;
-
- var result;
- if (element[attr] === expected)
- result = "TEST SUCCEEDED: The value was " + resultStringifier(expected) + ".";
- else
- result = "TEST FAILED: The value should have been " + resultStringifier(expected) + " but was " + resultStringifier(element[attr]) + ".";
-
- result += " [tested " + elementType + "." + attr + "]";
- printOut(result);
- }
-
- function runTests()
- {
- if (window.layoutTestController)
- layoutTestController.dumpAsText();
-
- var svgNS = 'http://www.w3.org/2000/svg';
- var svg = document.createElementNS(svgNS, 'svg');
-
- var listing = [
- {
- type: 'SVGElement',
- elementToUse: svg,
- attributes: [
- {name: 'id', expectedNull: ''},
- {name: 'xmlbase', expectedNull: ''}
- ]
- },
- {
- type: 'SVGAngle',
- elementToUse: svg.createSVGAngle(),
- attributes: [
- {name: 'valueAsString', expectedNull: '0deg'}
- ]
- },
- {
- type: 'SVGLength',
- elementToUse: svg.createSVGLength(),
- attributes: [
- {name: 'valueAsString', expectedNull: '0'}
- ]
- },
- {
- type: 'SVGScriptElement',
- elementToUse: document.createElementNS(svgNS, 'script'),
- attributes: [
- {name: 'type', expectedNull: ''}
- ]
- }
- ];
-
- for (element in listing) {
- var type = listing[element].type;
- var elementToUse = listing[element].elementToUse;
- var attrs = listing[element].attributes;
- for (attr in attrs) {
- nullTestElementAttribute(type, elementToUse, attrs[attr].name, attrs[attr].expectedNull);
- }
- printOut('');
- }
- }
-
- </script>
-</head>
-
-<body onload="runTests();">
- <p>This test setting various attributes of a SVG elements to JavaScript null.</p>
- <div id="console"></div>
-</body>
-</html>
</del></span></pre></div>
<a id="trunkLayoutTestssvgdomsvgelementattributejsnullexpectedtxtfromrev23913trunkLayoutTestsfastdomsvgelementattributejsnullexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/svg/dom/svg-element-attribute-js-null-expected.txt (from rev 23913, trunk/LayoutTests/fast/dom/svg-element-attribute-js-null-expected.txt) (0 => 23915)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/dom/svg-element-attribute-js-null-expected.txt         (rev 0)
+++ trunk/LayoutTests/svg/dom/svg-element-attribute-js-null-expected.txt        2007-07-01 17:23:29 UTC (rev 23915)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+This test setting various attributes of a SVG elements to JavaScript null.
+
+TEST SUCCEEDED: The value was the empty string. [tested SVGElement.id]
+TEST SUCCEEDED: The value was the empty string. [tested SVGElement.xmlbase]
+
+TEST SUCCEEDED: The value was the string '0deg'. [tested SVGAngle.valueAsString]
+
+TEST SUCCEEDED: The value was the string '0'. [tested SVGLength.valueAsString]
+
+TEST SUCCEEDED: The value was the empty string. [tested SVGScriptElement.type]
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestssvgdomsvgelementattributejsnullxhtmlfromrev23913trunkLayoutTestsfastdomsvgelementattributejsnullxhtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/svg/dom/svg-element-attribute-js-null.xhtml (from rev 23913, trunk/LayoutTests/fast/dom/svg-element-attribute-js-null.xhtml) (0 => 23915)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/dom/svg-element-attribute-js-null.xhtml         (rev 0)
+++ trunk/LayoutTests/svg/dom/svg-element-attribute-js-null.xhtml        2007-07-01 17:23:29 UTC (rev 23915)
</span><span class="lines">@@ -0,0 +1,100 @@
</span><ins>+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <style type="text/css">
+ .pass { color: green; }
+ .fail { color: red; }
+ </style>
+ <script type="text/javascript" charset="utf-8">
+ function printOut(msg)
+ {
+ var console = document.getElementById("console");
+ var span = document.createElementNS('http://www.w3.org/1999/xhtml', 'span');
+ span.appendChild(document.createTextNode(msg));
+ span.appendChild(document.createElementNS('http://www.w3.org/1999/xhtml', 'br'));
+ console.appendChild(span);
+ }
+
+ function resultStringifier(result)
+ {
+ if (result === "")
+ return "the empty string";
+ else if (result === undefined)
+ return "undefined";
+ else if (result === null)
+ return "null";
+ return "the string '" + result + "'";
+ }
+
+ function nullTestElementAttribute(elementType, element, attr, expected)
+ {
+ element[attr] = null;
+
+ var result;
+ if (element[attr] === expected)
+ result = "TEST SUCCEEDED: The value was " + resultStringifier(expected) + ".";
+ else
+ result = "TEST FAILED: The value should have been " + resultStringifier(expected) + " but was " + resultStringifier(element[attr]) + ".";
+
+ result += " [tested " + elementType + "." + attr + "]";
+ printOut(result);
+ }
+
+ function runTests()
+ {
+ if (window.layoutTestController)
+ layoutTestController.dumpAsText();
+
+ var svgNS = 'http://www.w3.org/2000/svg';
+ var svg = document.createElementNS(svgNS, 'svg');
+
+ var listing = [
+ {
+ type: 'SVGElement',
+ elementToUse: svg,
+ attributes: [
+ {name: 'id', expectedNull: ''},
+ {name: 'xmlbase', expectedNull: ''}
+ ]
+ },
+ {
+ type: 'SVGAngle',
+ elementToUse: svg.createSVGAngle(),
+ attributes: [
+ {name: 'valueAsString', expectedNull: '0deg'}
+ ]
+ },
+ {
+ type: 'SVGLength',
+ elementToUse: svg.createSVGLength(),
+ attributes: [
+ {name: 'valueAsString', expectedNull: '0'}
+ ]
+ },
+ {
+ type: 'SVGScriptElement',
+ elementToUse: document.createElementNS(svgNS, 'script'),
+ attributes: [
+ {name: 'type', expectedNull: ''}
+ ]
+ }
+ ];
+
+ for (element in listing) {
+ var type = listing[element].type;
+ var elementToUse = listing[element].elementToUse;
+ var attrs = listing[element].attributes;
+ for (attr in attrs) {
+ nullTestElementAttribute(type, elementToUse, attrs[attr].name, attrs[attr].expectedNull);
+ }
+ printOut('');
+ }
+ }
+
+ </script>
+</head>
+
+<body onload="runTests();">
+ <p>This test setting various attributes of a SVG elements to JavaScript null.</p>
+ <div id="console"></div>
+</body>
+</html>
</ins></span></pre>
</div>
</div>
</body>
</html>