summaryrefslogtreecommitdiffstats
path: root/dom/xml/test/old/xlink
diff options
context:
space:
mode:
Diffstat (limited to 'dom/xml/test/old/xlink')
-rw-r--r--dom/xml/test/old/xlink/auto.xml16
-rw-r--r--dom/xml/test/old/xlink/link.css22
-rw-r--r--dom/xml/test/old/xlink/manual.xml14
3 files changed, 52 insertions, 0 deletions
diff --git a/dom/xml/test/old/xlink/auto.xml b/dom/xml/test/old/xlink/auto.xml
new file mode 100644
index 000000000..91eb15ff4
--- /dev/null
+++ b/dom/xml/test/old/xlink/auto.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<?xml-stylesheet href="link.css" type="text/css"?>
+<root xmlns:xlink="http://www.w3.org/1999/xlink">
+ <p>Testing simple XLinks that must fire immediately on load.</p>
+ <mylink xlink:type="simple" xlink:actuate="onLoad" xlink:show="new" xlink:href="resource:/res/samples/test0.html">
+Must not open automatically, illegal</mylink>
+ <mylink xlink:type="simple" xlink:actuate="onLoad" xlink:show="new" xlink:href="http://www.mozilla.org">
+Must open automatically in new window (www.mozilla.org)</mylink>
+ <mylink xlink:type="simple" xlink:actuate="onLoad" xlink:show="new" xlink:href="http://www.mozillazine.org">
+Must open automatically in new window (www.mozillazine.org)</mylink>
+ <mylink xlink:type="simple" xlink:actuate="onLoad" xlink:show="replace" xlink:href="http://www.mozilla.org/mozorg.html">
+Must load automatically in same window - "Refresh" (At a glance)</mylink>
+ <mylink xlink:type="simple" xlink:actuate="onLoad" xlink:show="replace" xlink:href="http://www.netscape.com">
+Must not load automatically, one refresh link fired already (www.netscape.com)</mylink>
+</root>
+
diff --git a/dom/xml/test/old/xlink/link.css b/dom/xml/test/old/xlink/link.css
new file mode 100644
index 000000000..19dc52198
--- /dev/null
+++ b/dom/xml/test/old/xlink/link.css
@@ -0,0 +1,22 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+@namespace xlink url(http://www.w3.org/1999/xlink);
+
+root {
+ display: block;
+ padding: +5px;
+}
+
+p {
+ display: block;
+}
+
+mylink {
+ display: block;
+ cursor: pointer;
+ color: blue;
+ text-decoration: underline;
+}
+
diff --git a/dom/xml/test/old/xlink/manual.xml b/dom/xml/test/old/xlink/manual.xml
new file mode 100644
index 000000000..fd7d49fc1
--- /dev/null
+++ b/dom/xml/test/old/xlink/manual.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0"?>
+<?xml-stylesheet href="link.css" type="text/css"?>
+<root xmlns:xlink="http://www.w3.org/1999/xlink">
+ <p>Testing manual simple XLinks.</p>
+ <mylink xlink:type="simple" xlink:show="new" xlink:href="resource:/res/samples/test0.html">
+Must not open, illegal</mylink>
+ <mylink xlink:type="simple" xlink:show="new" xlink:href="http://www.mozilla.org">
+Must open in new window (www.mozilla.org)</mylink>
+ <mylink xlink:type="simple" xlink:show="replace" xlink:href="http://www.mozillazine.org">
+Must open in same window (www.mozillazine.org)</mylink>
+ <mylink xlink:type="simple" xlink:show="foo" xlink:href="http://www.mozilla.org/">
+Foo</mylink>
+</root>
+