Skip to content
Permalink
Browse files
2011-02-28 Vsevolod Vlasov <vsevik@chromium.org>
        Reviewed by Pavel Feldman.

        XML without style should render as syntax-highlighted source.
        https://bugs.webkit.org/show_bug.cgi?id=13807

        Added tests for XML tree view mode. Testing both logic for entering
        XML tree view mode and rendering itself.
        Tests are disabled for QT since this logic is not yet implemented, see
        https://bugs.webkit.org/show_bug.cgi?id=55302

        * fast/css/dumpAsText/xml-stylesheet-pi-not-in-prolog-expected.txt: Copied from LayoutTests/fast/css/xml-stylesheet-pi-not-in-prolog.xml.
        * fast/css/dumpAsText/xml-stylesheet-pi-not-in-prolog.xml: Renamed from LayoutTests/fast/css/xml-stylesheet-pi-not-in-prolog.xml.
        * fast/encoding/dumpAsText/utf-16-no-bom-expected.txt: Added.
        * fast/encoding/dumpAsText/utf-16-no-bom.xml: Renamed from LayoutTests/fast/encoding/utf-16-no-bom.xml.
        * http/tests/xmlviewer/dumpAsText/css-stylesheet-expected.txt: Added.
        * http/tests/xmlviewer/dumpAsText/css-stylesheet.xml: Added.
        * http/tests/xmlviewer/dumpAsText/frames-expected.txt: Added.
        * http/tests/xmlviewer/dumpAsText/frames.html: Added.
        * http/tests/xmlviewer/dumpAsText/mathml-expected.txt: Added.
        * http/tests/xmlviewer/dumpAsText/mathml.xml: Added.
        * http/tests/xmlviewer/dumpAsText/resources/css-stylesheet.css: Added.
        (assertion):
        * http/tests/xmlviewer/dumpAsText/resources/frames-helper.xml: Added.
        * http/tests/xmlviewer/dumpAsText/resources/xsl.xml: Added.
        * http/tests/xmlviewer/dumpAsText/svg-expected.txt: Added.
        * http/tests/xmlviewer/dumpAsText/svg.xml: Added.
        * http/tests/xmlviewer/dumpAsText/wml-expected.txt: Added.
        * http/tests/xmlviewer/dumpAsText/wml.xml: Added.
        * http/tests/xmlviewer/dumpAsText/xhtml-tag-expected.txt: Added.
        * http/tests/xmlviewer/dumpAsText/xhtml-tag.xml: Added.
        * http/tests/xmlviewer/dumpAsText/xlink-expected.txt: Added.
        * http/tests/xmlviewer/dumpAsText/xlink.xml: Added.
        * http/tests/xmlviewer/dumpAsText/xmlviewer-charset-cp1251-expected.txt: Added.
        * http/tests/xmlviewer/dumpAsText/xmlviewer-charset-cp1251.xml: Added.
        * http/tests/xmlviewer/dumpAsText/xmlviewer-charset-utf8-expected.txt: Added.
        * http/tests/xmlviewer/dumpAsText/xmlviewer-charset-utf8.xml: Added.
        * http/tests/xmlviewer/dumpAsText/xmlviewer-expected.txt: Added.
        * http/tests/xmlviewer/dumpAsText/xmlviewer.xml: Added.
        * http/tests/xmlviewer/dumpAsText/xsl-stylesheet-expected.txt: Added.
        * http/tests/xmlviewer/dumpAsText/xsl-stylesheet.xml: Added.
        * http/tests/xmlviewer/dumpAsText/xul-expected.txt: Added.
        * http/tests/xmlviewer/dumpAsText/xul.xml: Added.
        * platform/chromium-linux/fast/css/xml-stylesheet-pi-not-in-prolog-expected.checksum: Removed.
        * platform/chromium-linux/fast/css/xml-stylesheet-pi-not-in-prolog-expected.png: Removed.
        * platform/chromium-linux/fast/encoding/utf-16-no-bom-expected.checksum: Removed.
        * platform/chromium-linux/fast/encoding/utf-16-no-bom-expected.png: Removed.
        * platform/chromium-linux/svg/hixie/error/004-expected.checksum: Removed.
        * platform/chromium-linux/svg/hixie/error/004-expected.png: Removed.
        * platform/chromium-linux/svg/hixie/error/005-expected.checksum: Removed.
        * platform/chromium-linux/svg/hixie/error/005-expected.png: Removed.
        * platform/chromium-win/fast/css/xml-stylesheet-pi-not-in-prolog-expected.checksum: Removed.
        * platform/chromium-win/fast/css/xml-stylesheet-pi-not-in-prolog-expected.png: Removed.
        * platform/chromium-win/fast/css/xml-stylesheet-pi-not-in-prolog-expected.txt: Removed.
        * platform/chromium-win/fast/encoding/utf-16-no-bom-expected.checksum: Removed.
        * platform/chromium-win/fast/encoding/utf-16-no-bom-expected.png: Removed.
        * platform/chromium-win/fast/encoding/utf-16-no-bom-expected.txt: Removed.
        * platform/chromium-win/svg/hixie/error/004-expected.checksum: Removed.
        * platform/chromium-win/svg/hixie/error/004-expected.png: Removed.
        * platform/chromium-win/svg/hixie/error/004-expected.txt: Removed.
        * platform/chromium-win/svg/hixie/error/005-expected.checksum: Removed.
        * platform/chromium-win/svg/hixie/error/005-expected.png: Removed.
        * platform/chromium-win/svg/hixie/error/005-expected.txt: Removed.
        * platform/chromium/http/tests/xmlviewer/dumpAsText/mathml-expected.txt: Added.
        * platform/gtk/fast/css/xml-stylesheet-pi-not-in-prolog-expected.checksum: Removed.
        * platform/gtk/fast/css/xml-stylesheet-pi-not-in-prolog-expected.png: Removed.
        * platform/gtk/fast/css/xml-stylesheet-pi-not-in-prolog-expected.txt: Removed.
        * platform/gtk/fast/encoding/utf-16-no-bom-expected.checksum: Removed.
        * platform/gtk/fast/encoding/utf-16-no-bom-expected.png: Removed.
        * platform/gtk/fast/encoding/utf-16-no-bom-expected.txt: Removed.
        * platform/gtk/svg/hixie/error/004-expected.checksum: Removed.
        * platform/gtk/svg/hixie/error/004-expected.png: Removed.
        * platform/gtk/svg/hixie/error/004-expected.txt: Removed.
        * platform/gtk/svg/hixie/error/005-expected.checksum: Removed.
        * platform/gtk/svg/hixie/error/005-expected.png: Removed.
        * platform/gtk/svg/hixie/error/005-expected.txt: Removed.
        * platform/mac-leopard/fast/css/xml-stylesheet-pi-not-in-prolog-expected.checksum: Removed.
        * platform/mac-leopard/fast/css/xml-stylesheet-pi-not-in-prolog-expected.png: Removed.
        * platform/mac-leopard/fast/encoding/utf-16-no-bom-expected.checksum: Removed.
        * platform/mac-leopard/fast/encoding/utf-16-no-bom-expected.png: Removed.
        * platform/mac-leopard/svg/hixie/error/004-expected.checksum: Removed.
        * platform/mac-leopard/svg/hixie/error/004-expected.png: Removed.
        * platform/mac-leopard/svg/hixie/error/005-expected.checksum: Removed.
        * platform/mac-leopard/svg/hixie/error/005-expected.png: Removed.
        * platform/mac/fast/css/xml-stylesheet-pi-not-in-prolog-expected.checksum: Removed.
        * platform/mac/fast/css/xml-stylesheet-pi-not-in-prolog-expected.png: Removed.
        * platform/mac/fast/css/xml-stylesheet-pi-not-in-prolog-expected.txt: Removed.
        * platform/mac/fast/encoding/utf-16-no-bom-expected.checksum: Removed.
        * platform/mac/fast/encoding/utf-16-no-bom-expected.png: Removed.
        * platform/mac/fast/encoding/utf-16-no-bom-expected.txt: Removed.
        * platform/mac/svg/hixie/error/004-expected.checksum: Removed.
        * platform/mac/svg/hixie/error/004-expected.png: Removed.
        * platform/mac/svg/hixie/error/004-expected.txt: Removed.
        * platform/mac/svg/hixie/error/005-expected.checksum: Removed.
        * platform/mac/svg/hixie/error/005-expected.png: Removed.
        * platform/mac/svg/hixie/error/005-expected.txt: Removed.
        * platform/qt/Skipped:
        * platform/qt/fast/css/dumpAsText/xml-stylesheet-pi-not-in-prolog-expected.txt: Added.
        * platform/qt/fast/css/xml-stylesheet-pi-not-in-prolog-expected.txt: Removed.
        * platform/qt/fast/encoding/dumpAsText/utf-16-no-bom-expected.txt: Added.
        * platform/qt/fast/encoding/utf-16-no-bom-expected.txt: Removed.
        * platform/qt/svg/hixie/error/004-expected.txt: Removed.
        * platform/qt/svg/hixie/error/005-expected.txt: Removed.
        * platform/qt/svg/hixie/error/dumpAsText/004-expected.txt: Added.
        * platform/qt/svg/hixie/error/dumpAsText/005-expected.txt: Added.
        * svg/hixie/error/dumpAsText/004-expected.txt: Added.
        * svg/hixie/error/dumpAsText/004.xml: Renamed from LayoutTests/svg/hixie/error/004.xml.
        * svg/hixie/error/dumpAsText/005-expected.txt: Added.
        * svg/hixie/error/dumpAsText/005.xml: Renamed from LayoutTests/svg/hixie/error/005.xml.
2011-02-28  Vsevolod Vlasov  <vsevik@chromium.org>

        Reviewed by Pavel Feldman.

        XML without style should render as syntax-highlighted source.
        https://bugs.webkit.org/show_bug.cgi?id=13807

        XML tree view mode implemented. If XML does not have any style
        information, it is rendered as highlighted source with collapsable
        elements.

        Tests: fast/css/dumpAsText/xml-stylesheet-pi-not-in-prolog.xml
               fast/encoding/dumpAsText/utf-16-no-bom.xml
               http/tests/xmlviewer/dumpAsText/css-stylesheet.xml
               http/tests/xmlviewer/dumpAsText/frames.html
               http/tests/xmlviewer/dumpAsText/mathml.xml
               http/tests/xmlviewer/dumpAsText/svg.xml
               http/tests/xmlviewer/dumpAsText/wml.xml
               http/tests/xmlviewer/dumpAsText/xhtml-tag.xml
               http/tests/xmlviewer/dumpAsText/xlink.xml
               http/tests/xmlviewer/dumpAsText/xmlviewer-charset-cp1251.xml
               http/tests/xmlviewer/dumpAsText/xmlviewer-charset-utf8.xml
               http/tests/xmlviewer/dumpAsText/xmlviewer.xml
               http/tests/xmlviewer/dumpAsText/xsl-stylesheet.xml
               http/tests/xmlviewer/dumpAsText/xul.xml
               svg/hixie/error/dumpAsText/004.xml
               svg/hixie/error/dumpAsText/005.xml

        * CMakeLists.txt:
        * DerivedSources.make:
        * GNUmakefile.am:
        * WebCore.gyp/WebCore.gyp:
        * WebCore.gypi:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * css/CSSStyleSelector.cpp:
        (WebCore::CSSStyleSelector::matchUARules):
        * dom/Document.cpp:
        (WebCore::Document::Document):
        (WebCore::Document::createElement):
        * dom/Document.h:
        (WebCore::Document::usesViewSourceStyles):
        (WebCore::Document::setUsesViewSourceStyles):
        (WebCore::Document::sawElementsInKnownNamespaces):
        * dom/XMLDocumentParser.h:
        * dom/XMLDocumentParserLibxml2.cpp:
        (WebCore::XMLDocumentParser::XMLDocumentParser):
        (WebCore::XMLDocumentParser::processingInstruction):
        (WebCore::XMLDocumentParser::initializeParserContext):
        (WebCore::XMLDocumentParser::doEnd):
        * dom/XMLDocumentParserQt.cpp:
        (WebCore::XMLDocumentParser::XMLDocumentParser):
        (WebCore::XMLDocumentParser::initializeParserContext):
        (WebCore::XMLDocumentParser::parseProcessingInstruction):
        * html/HTMLViewSourceDocument.cpp:
        (WebCore::HTMLViewSourceDocument::HTMLViewSourceDocument):
        * xml/XMLTreeViewer.cpp: Added.
        (WebCore::XMLTreeViewer::XMLTreeViewer):
        (WebCore::XMLTreeViewer::hasNoStyleInformation):
        (WebCore::XMLTreeViewer::transformDocumentToTreeView):
        * xml/XMLTreeViewer.h: Added.
        (WebCore::XMLTreeViewer::~XMLTreeViewer):
        * xml/XMLViewer.xsl: Added.
        * xml/XSLStyleSheet.h:
        (WebCore::XSLStyleSheet::createForXMLTreeViewer):

Canonical link: https://commits.webkit.org/69778@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@79861 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
pavelfeldman committed Feb 28, 2011
1 parent 22c6c92 commit 85eac17bb3a05ff4ea17deacf7857a065668a5b8
Showing 96 changed files with 1,220 additions and 180 deletions.
@@ -1,3 +1,114 @@
2011-02-28 Vsevolod Vlasov <vsevik@chromium.org>

Reviewed by Pavel Feldman.

XML without style should render as syntax-highlighted source.
https://bugs.webkit.org/show_bug.cgi?id=13807

Added tests for XML tree view mode. Testing both logic for entering
XML tree view mode and rendering itself.
Tests are disabled for QT since this logic is not yet implemented, see
https://bugs.webkit.org/show_bug.cgi?id=55302

* fast/css/dumpAsText/xml-stylesheet-pi-not-in-prolog-expected.txt: Copied from LayoutTests/fast/css/xml-stylesheet-pi-not-in-prolog.xml.
* fast/css/dumpAsText/xml-stylesheet-pi-not-in-prolog.xml: Renamed from LayoutTests/fast/css/xml-stylesheet-pi-not-in-prolog.xml.
* fast/encoding/dumpAsText/utf-16-no-bom-expected.txt: Added.
* fast/encoding/dumpAsText/utf-16-no-bom.xml: Renamed from LayoutTests/fast/encoding/utf-16-no-bom.xml.
* http/tests/xmlviewer/dumpAsText/css-stylesheet-expected.txt: Added.
* http/tests/xmlviewer/dumpAsText/css-stylesheet.xml: Added.
* http/tests/xmlviewer/dumpAsText/frames-expected.txt: Added.
* http/tests/xmlviewer/dumpAsText/frames.html: Added.
* http/tests/xmlviewer/dumpAsText/mathml-expected.txt: Added.
* http/tests/xmlviewer/dumpAsText/mathml.xml: Added.
* http/tests/xmlviewer/dumpAsText/resources/css-stylesheet.css: Added.
(assertion):
* http/tests/xmlviewer/dumpAsText/resources/frames-helper.xml: Added.
* http/tests/xmlviewer/dumpAsText/resources/xsl.xml: Added.
* http/tests/xmlviewer/dumpAsText/svg-expected.txt: Added.
* http/tests/xmlviewer/dumpAsText/svg.xml: Added.
* http/tests/xmlviewer/dumpAsText/wml-expected.txt: Added.
* http/tests/xmlviewer/dumpAsText/wml.xml: Added.
* http/tests/xmlviewer/dumpAsText/xhtml-tag-expected.txt: Added.
* http/tests/xmlviewer/dumpAsText/xhtml-tag.xml: Added.
* http/tests/xmlviewer/dumpAsText/xlink-expected.txt: Added.
* http/tests/xmlviewer/dumpAsText/xlink.xml: Added.
* http/tests/xmlviewer/dumpAsText/xmlviewer-charset-cp1251-expected.txt: Added.
* http/tests/xmlviewer/dumpAsText/xmlviewer-charset-cp1251.xml: Added.
* http/tests/xmlviewer/dumpAsText/xmlviewer-charset-utf8-expected.txt: Added.
* http/tests/xmlviewer/dumpAsText/xmlviewer-charset-utf8.xml: Added.
* http/tests/xmlviewer/dumpAsText/xmlviewer-expected.txt: Added.
* http/tests/xmlviewer/dumpAsText/xmlviewer.xml: Added.
* http/tests/xmlviewer/dumpAsText/xsl-stylesheet-expected.txt: Added.
* http/tests/xmlviewer/dumpAsText/xsl-stylesheet.xml: Added.
* http/tests/xmlviewer/dumpAsText/xul-expected.txt: Added.
* http/tests/xmlviewer/dumpAsText/xul.xml: Added.
* platform/chromium-linux/fast/css/xml-stylesheet-pi-not-in-prolog-expected.checksum: Removed.
* platform/chromium-linux/fast/css/xml-stylesheet-pi-not-in-prolog-expected.png: Removed.
* platform/chromium-linux/fast/encoding/utf-16-no-bom-expected.checksum: Removed.
* platform/chromium-linux/fast/encoding/utf-16-no-bom-expected.png: Removed.
* platform/chromium-linux/svg/hixie/error/004-expected.checksum: Removed.
* platform/chromium-linux/svg/hixie/error/004-expected.png: Removed.
* platform/chromium-linux/svg/hixie/error/005-expected.checksum: Removed.
* platform/chromium-linux/svg/hixie/error/005-expected.png: Removed.
* platform/chromium-win/fast/css/xml-stylesheet-pi-not-in-prolog-expected.checksum: Removed.
* platform/chromium-win/fast/css/xml-stylesheet-pi-not-in-prolog-expected.png: Removed.
* platform/chromium-win/fast/css/xml-stylesheet-pi-not-in-prolog-expected.txt: Removed.
* platform/chromium-win/fast/encoding/utf-16-no-bom-expected.checksum: Removed.
* platform/chromium-win/fast/encoding/utf-16-no-bom-expected.png: Removed.
* platform/chromium-win/fast/encoding/utf-16-no-bom-expected.txt: Removed.
* platform/chromium-win/svg/hixie/error/004-expected.checksum: Removed.
* platform/chromium-win/svg/hixie/error/004-expected.png: Removed.
* platform/chromium-win/svg/hixie/error/004-expected.txt: Removed.
* platform/chromium-win/svg/hixie/error/005-expected.checksum: Removed.
* platform/chromium-win/svg/hixie/error/005-expected.png: Removed.
* platform/chromium-win/svg/hixie/error/005-expected.txt: Removed.
* platform/chromium/http/tests/xmlviewer/dumpAsText/mathml-expected.txt: Added.
* platform/gtk/fast/css/xml-stylesheet-pi-not-in-prolog-expected.checksum: Removed.
* platform/gtk/fast/css/xml-stylesheet-pi-not-in-prolog-expected.png: Removed.
* platform/gtk/fast/css/xml-stylesheet-pi-not-in-prolog-expected.txt: Removed.
* platform/gtk/fast/encoding/utf-16-no-bom-expected.checksum: Removed.
* platform/gtk/fast/encoding/utf-16-no-bom-expected.png: Removed.
* platform/gtk/fast/encoding/utf-16-no-bom-expected.txt: Removed.
* platform/gtk/svg/hixie/error/004-expected.checksum: Removed.
* platform/gtk/svg/hixie/error/004-expected.png: Removed.
* platform/gtk/svg/hixie/error/004-expected.txt: Removed.
* platform/gtk/svg/hixie/error/005-expected.checksum: Removed.
* platform/gtk/svg/hixie/error/005-expected.png: Removed.
* platform/gtk/svg/hixie/error/005-expected.txt: Removed.
* platform/mac-leopard/fast/css/xml-stylesheet-pi-not-in-prolog-expected.checksum: Removed.
* platform/mac-leopard/fast/css/xml-stylesheet-pi-not-in-prolog-expected.png: Removed.
* platform/mac-leopard/fast/encoding/utf-16-no-bom-expected.checksum: Removed.
* platform/mac-leopard/fast/encoding/utf-16-no-bom-expected.png: Removed.
* platform/mac-leopard/svg/hixie/error/004-expected.checksum: Removed.
* platform/mac-leopard/svg/hixie/error/004-expected.png: Removed.
* platform/mac-leopard/svg/hixie/error/005-expected.checksum: Removed.
* platform/mac-leopard/svg/hixie/error/005-expected.png: Removed.
* platform/mac/fast/css/xml-stylesheet-pi-not-in-prolog-expected.checksum: Removed.
* platform/mac/fast/css/xml-stylesheet-pi-not-in-prolog-expected.png: Removed.
* platform/mac/fast/css/xml-stylesheet-pi-not-in-prolog-expected.txt: Removed.
* platform/mac/fast/encoding/utf-16-no-bom-expected.checksum: Removed.
* platform/mac/fast/encoding/utf-16-no-bom-expected.png: Removed.
* platform/mac/fast/encoding/utf-16-no-bom-expected.txt: Removed.
* platform/mac/svg/hixie/error/004-expected.checksum: Removed.
* platform/mac/svg/hixie/error/004-expected.png: Removed.
* platform/mac/svg/hixie/error/004-expected.txt: Removed.
* platform/mac/svg/hixie/error/005-expected.checksum: Removed.
* platform/mac/svg/hixie/error/005-expected.png: Removed.
* platform/mac/svg/hixie/error/005-expected.txt: Removed.
* platform/qt/Skipped:
* platform/qt/fast/css/dumpAsText/xml-stylesheet-pi-not-in-prolog-expected.txt: Added.
* platform/qt/fast/css/xml-stylesheet-pi-not-in-prolog-expected.txt: Removed.
* platform/qt/fast/encoding/dumpAsText/utf-16-no-bom-expected.txt: Added.
* platform/qt/fast/encoding/utf-16-no-bom-expected.txt: Removed.
* platform/qt/svg/hixie/error/004-expected.txt: Removed.
* platform/qt/svg/hixie/error/005-expected.txt: Removed.
* platform/qt/svg/hixie/error/dumpAsText/004-expected.txt: Added.
* platform/qt/svg/hixie/error/dumpAsText/005-expected.txt: Added.
* svg/hixie/error/dumpAsText/004-expected.txt: Added.
* svg/hixie/error/dumpAsText/004.xml: Renamed from LayoutTests/svg/hixie/error/004.xml.
* svg/hixie/error/dumpAsText/005-expected.txt: Added.
* svg/hixie/error/dumpAsText/005.xml: Renamed from LayoutTests/svg/hixie/error/005.xml.

2011-02-28 Pavel Feldman <pfeldman@chromium.org>

Not reviewed: skipping new inspector network tests on win.
@@ -0,0 +1,5 @@
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<foo>
This tests that xml-stylesheet processing instructions have no effect when they're not in the prolog (before the root element). If this test is successful, this text should NOT have a black border.
</foo>

@@ -0,0 +1,5 @@
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<TEST>
Should be "CYRILLIC SMALL LETTER IO" (like e with diaeresis): ё
</TEST>

@@ -0,0 +1 @@
This tests that xml viewer is not used when there is a CSS stylesheet. This text should be green. SUCCESS
@@ -0,0 +1,7 @@
<!-- If you can see this, this test has failed. -->
<?xml-stylesheet href="resources/css-stylesheet.css"?>
<FAIL xmlns="http://unknown.example.org/">
<header>This tests that xml viewer is not used when there is a CSS stylesheet.</header>
<assertion>This text should be green.</assertion>
SUCCESS
</FAIL>
@@ -0,0 +1,12 @@
This tests that XML Viewer is not used when XML is opened in frame.


--------
Frame: 'iframeFrame'
--------
SUCCESS

--------
Frame: 'objectFrame'
--------
SUCCESS
@@ -0,0 +1,19 @@
<html>
<head>
<script type="text/javascript">
function onload() {
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.dumpChildFramesAsText();
}
}
</script>
</head>
<body onload="onload()">
<div>
This tests that XML Viewer is not used when XML is opened in frame.
</div>
<iframe name="iframeFrame" style="border:10px solid gray;padding:25px" width="300" height="200" src="resources/frames-helper.xml"></iframe>
<object name="objectFrame" style="border:10px solid gray;padding:25px; width:300px; height:200px" data="resources/frames-helper.xml"></object>
</body>
</html>
@@ -0,0 +1 @@
This tests that xml viewer is not used when there is a tag in MATHML namespace. SUCCESS
@@ -0,0 +1,10 @@
<!-- If you can see this, this test has failed, except if you are
not using a MathML-aware client. -->
<FAIL xmlns:a="http://www.w3.org/1998/Math/MathML">
<header>This tests that xml viewer is not used when there is a tag in MATHML namespace.</header>
<a:math>
<a:mrow>
<a:mi>SUCCESS</a:mi>
</a:mrow>
</a:math>
</FAIL>
@@ -0,0 +1 @@
assertion { color: green; }
@@ -0,0 +1,5 @@
<!-- If you can see this, this test has failed. -->
<page>
<FAIL/>
<text>SUCCESS</text>
</page>
@@ -0,0 +1,11 @@
<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0"
id="stylesheet"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<FAIL>
<header>This tests that xml viewer is not used when there is an XSL stylesheet.</header>
SUCCESS
</FAIL>
</xsl:template>
</xsl:stylesheet>
@@ -0,0 +1,3 @@
This tests that xml viewer is not used when there is a tag in SVG namespace.
SUCCESS

@@ -0,0 +1,9 @@
<!-- If you can see this, this test has failed, except if you are
not using an SVG-aware client. -->
<root>
<header>This tests that xml viewer is not used when there is a tag in SVG namespace.</header>
<FAIL/>
<svg:svg xmlns:svg="http://www.w3.org/2000/svg"x="20" y="20" font-size="20">
<svg:text y="20" font-size="20">SUCCESS</svg:text>
</svg:svg>
</root>
@@ -0,0 +1,15 @@
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<!--
If you can see this, this test has failed, except if you are not using a WML-aware client.
-->
<?sds erfe?>
<wml>
<header>
This tests that xml viewer is not used for documents with WML doctype.
</header>
<card id="card1" title="Card 1">
<FAIL/>
<p>SUCCESS</p>
</card>
</wml>

@@ -0,0 +1,11 @@
<!-- If you can see this, this test has failed, except if you are
not using a WML-aware client. -->
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<?sds erfe?>
<wml>
<header>This tests that xml viewer is not used for documents with WML doctype.</header>
<card id="card1" title="Card 1">
<FAIL/>
<p>SUCCESS</p>
</card>
</wml>
@@ -0,0 +1,3 @@
This tests that xml viewer is not used when there is a tag in XHTML namespace.
This should be green.
SUCCESS
@@ -0,0 +1,17 @@
<!-- If you can see this this test has failed-->
<page xmlns:xhtml="http://www.w3.org/1999/xhtml">
<header>This tests that xml viewer is not used when there is a tag in XHTML namespace.</header>
<FAIL/>
<xhtml:div style="color:green" id="green">This should be green.</xhtml:div>
<xhtml:div id="success"></xhtml:div>

<xhtml:script type="text/javascript">
<![CDATA[
if (window.layoutTestController)
layoutTestController.dumpAsText();
if (document.getElementById("green").style.color == "green")
document.getElementById('success').textContent = "SUCCESS";
]]>
</xhtml:script>
</page>
@@ -0,0 +1,10 @@
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<!-- If you can see this, this test has failed. -->
<test>
<header>
This tests that xml viewer is not used when there is an attribute XLink namespace.
</header>
<FAIL/>
<xlink l:type="simple" l:href="xlink.xml">SUCCESS</xlink>
</test>

@@ -0,0 +1,6 @@
<!-- If you can see this, this test has failed. -->
<test xmlns="http://still-unknown.example.org/">
<header>This tests that xml viewer is not used when there is an attribute XLink namespace.</header>
<FAIL/>
<xlink l:type="simple" l:href="xlink.xml" xmlns:l="http://www.w3.org/1999/xlink">SUCCESS</xlink>
</test>
@@ -0,0 +1,5 @@
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<root>
<cp1251>SUССЕSS - These 'CCE' are cyrillic letters.</cp1251>
</root>

@@ -0,0 +1,4 @@
<?xml version='1.0' encoding='cp1251'?>
<root>
<cp1251>SUÑÑÅSS - These 'CCE' are cyrillic letters.</cp1251>
</root>
@@ -0,0 +1,5 @@
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<root>
<utf8>SUССЕSS - These 'CCE' are cyrillic letters.</utf8>
</root>

@@ -0,0 +1,4 @@
<?xml version='1.0' encoding='utf-8'?>
<root>
<utf8>SUССЕSS - These 'CCE' are cyrillic letters.</utf8>
</root>

0 comments on commit 85eac17

Please sign in to comment.