From b1206faf63af606f917d34cea9d39fc3b28caaa2 Mon Sep 17 00:00:00 2001 From: "heikki%citec.fi" Date: Thu, 13 Apr 2000 06:40:18 +0000 Subject: [PATCH] Test files for XML Base. **Sicking testing cvs admin** git-svn-id: svn://10.0.0.236/trunk@65787 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/xml/tests/xmlbase/xmlbase.xml | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 mozilla/content/xml/tests/xmlbase/xmlbase.xml diff --git a/mozilla/content/xml/tests/xmlbase/xmlbase.xml b/mozilla/content/xml/tests/xmlbase/xmlbase.xml new file mode 100644 index 00000000000..15acc628dc3 --- /dev/null +++ b/mozilla/content/xml/tests/xmlbase/xmlbase.xml @@ -0,0 +1,62 @@ + + + +Root: no xml:base +a.xml +

Expected: <current path>/a.xml

+ + Sect1: xml:base="http://www.mozilla.org" + b.xml +

Expected: http://www.mozilla.org/b.xml

+ + Sect2: xml:base="/base" + c.xml +

Expected: http://www.mozilla.org/base/c.xml

+ + Sect3: xml:base="" + d.xml +

Expected: http://www.mozilla.org/base/d.xml

+
+ + Sect3: xml:base="/" + d-2.xml +

Expected: http://www.mozilla.org/d-2.xml

+
+ + Sect3: xml:base="/foobar" + e.xml +

Expected: http://www.mozilla.org/foobar/e.xml

+
+ + Sect3: xml:base="ding/dong" + f.xml +

Expected: http://www.mozilla.org/base/ding/dong/f.xml

+
+
+ + Sect2: xml:base="http://www.netscape.com" + g.xml +

Expected: http://www.netscape.com/g.xml

+
+ + Sect2: xml:base="http://www.netscape.com" + http://www.mozilla.org/foobar/h.xml +

Expected: http://www.mozilla.org/foobar/h.xml

+
+ + Sect2: xml:base="http://www.netscape.com" + i.xml, this element has xml:base="wow" +

Expected: http://www.netscape.com/wow/i.xml

+
+
+ + Sect1: xml:base="nothere" + j.xml +

Expected: <current path>/nothere/j.xml

+
+ + Sect1: xml:base="/not" + k.xml +

Expected: file:///not/k.xml

+
+
\ No newline at end of file