Bug 1425356 - remove some tests that only make sense when XUL templates are supported, r=mrbkap

MozReview-Commit-ID: 6mhHJ6bBkHz

--HG--
extra : rebase_source : d44d7c801d61c53448ff535ed2a3c3221c8f5ddb
This commit is contained in:
Gijs Kruitbosch 2017-12-20 14:28:28 +00:00
parent 263144df26
commit 613d9c6f17
8 changed files with 0 additions and 201 deletions

View File

@ -1,23 +0,0 @@
<?xml-stylesheet href="chrome://browser/skin/" type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<richlistbox id="a" datasources="" template="d"/>
<script><![CDATA[
function doe() {
var node = document.getElementById('a');
var b = node.builder;
document.removeChild(document.documentElement);
b.addResult({}, node);
b.removeResult({});
b.replaceResult({}, {}, node);
b.resultBindingChanged({});
try { b.addResult(null, null); } catch(ex) { }
try { b.removeResult(null); } catch(ex) { }
try { b.replaceResult(null, null, null); } catch(ex) { }
try { b.resultBindingChanged(null); } catch(ex) { }
try { b.getResultForId("empty"); } catch(ex) { }
try { b.getResultForContent(node); } catch(ex) { }
try { b.hasGeneratedContent(null, null); } catch(ex) { }
}
window.addEventListener("load", doe, false);
]]></script>
</window>

View File

@ -30,4 +30,3 @@ load 468211-3.xul
load 495635-1.xul
load 509719-1.xul
asserts(3) load 509719-2.xul # bug 909819
load 583230.xul

View File

@ -2,7 +2,6 @@
support-files =
398289-resource.xul
bug497875-iframe.xul
file_bug236853.rdf
overlay1_bug335375.xul
overlay2_bug335375.xul
window_bug583948.xul
@ -13,7 +12,6 @@ support-files =
[test_bug199692.xul]
[test_bug233643.xul]
[test_bug236853.xul]
[test_bug311681.xul]
[test_bug335375.xul]
[test_bug391002.xul]

View File

@ -1,37 +0,0 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
<?xml-stylesheet type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"?>
<window
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:svg="http://www.w3.org/2000/svg">
<script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
<script type="application/javascript">
<![CDATA[
SimpleTest.waitForExplicitFinish();
window.onload = function() {
ok(true, "Didn't crash");
SimpleTest.finish();
}
]]>
</script>
<vbox flex="1">
<svg:svg datasources="file_bug236853.rdf" ref="urn:root">
<template>
<rule>
<conditions>
<content uri="?root"/>
<triple subject="?root"
predicate="http://www.ex.org/ex-rdf#nodes"
object="?nodes"/>
<member container="?nodes" child="?node"/>
</conditions>
<action>
<!-- The line below causes Mozilla to crash -->
<svg:text uri="?node" x="64" y="64">Text</svg:text>
</action>
</rule>
</template>
<!--<svg:text x="64" y="64">Text</svg:text>-->
</svg:svg>
</vbox>
</window>

View File

@ -3,7 +3,6 @@ skip-if = os == 'android'
support-files =
animated.gif
blue-32x32.png
bug495648.rdf
bug551434_childframe.html
chrome_content_integration_window.xul
default_background_window.xul
@ -20,7 +19,6 @@ support-files =
[test_bug396367-2.html]
[test_bug420499.xul]
[test_bug458898.html]
[test_bug495648.xul]
[test_bug504311.xul]
[test_bug514660.xul]
[test_bug533845.xul]

View File

@ -1,46 +0,0 @@
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="chrome://global/skin"?>
<?xml-stylesheet type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"?>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=495648
-->
<window title="Mozilla Bug 495648"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
<!-- test results are displayed in the html:body -->
<body xmlns="http://www.w3.org/1999/xhtml">
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=495648"
target="_blank">Mozilla Bug 495648</a>
</body>
<!-- test code goes here -->
<script type="application/javascript">
<![CDATA[
SimpleTest.expectAssertions(15, 24);
/** Test for Bug 495648 **/
var uri = window.location.href.replace(/test_bug495648.xul/, "bug495648.rdf");
function doTest() {
var list = document.getElementById('l');
var ios = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService);
var rdfService = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Components.interfaces.nsIRDFService);
var rdf = rdfService.GetDataSourceBlocking(uri);
list.database.AddDataSource(rdf);
list.builder.rebuild();
is(list.itemCount, 40, "Unexpected item count");
SimpleTest.finish();
}
SimpleTest.waitForExplicitFinish();
addLoadEvent(doTest);
]]>
</script>
<listbox flex="1" id="l" seltype="multiple" datasources="rdf:null" ref="urn:root" sortResource="http://home.netscape.com/NC-rdf#name" sortDirection="ascending">
<template>
<rule><conditions><content uri="?uri" /><triple subject="?uri" predicate="http://home.netscape.com/NC-rdf#links" object="?links" /><member container="?links" child="?child" /><triple subject="?child" predicate="http://home.netscape.com/NC-rdf#name" object="?name" /></conditions><bindings><binding subject="?child" predicate="http://sitedelta.schierla.de/SD-rdf#status" object="?status" /></bindings><action><listitem label="?name" class="listitem-iconic" status="?status" uri="?child" /></action></rule>
</template>
</listbox>
</window>

View File

@ -170,7 +170,6 @@ support-files = window_preferences_onsyncfrompreference.xul
[test_screenPersistence.xul]
[test_scrollbar.xul]
[test_showcaret.xul]
[test_sorttemplate.xul]
[test_subframe_origin.xul]
[test_tabbox.xul]
[test_tabindex.xul]

View File

@ -1,89 +0,0 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
<?xml-stylesheet href="data:text/css,window > |people { display: none }" type="text/css"?>
<!--
XUL Widget Test for tabindex
-->
<window title="tabindex" width="500" height="600"
onfocus="runTest()"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
<script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
<people id="famouspeople" xmlns="">
<person name="Napoleon Bonaparte" gender="male"/>
<person name="Cleopatra" gender="female"/>
<person name="Julius Caesar" gender="male"/>
<person name="Ferdinand Magellan" gender="male"/>
<person name="Laura Secord" gender="female"/>
</people>
<tree id="tree" datasources="#famouspeople" ref="*" querytype="xml" flex="1">
<treecols>
<treecol label="Name" flex="1" sort="?name"/>
<treecol label="Gender" flex="1" sort="?gender"/>
</treecols>
<template>
<query/>
<rule>
<action>
<treechildren id="treechildren-strings">
<treeitem uri="?">
<treerow>
<treecell label="?name"/>
<treecell label="?gender"/>
</treerow>
</treeitem>
</treechildren>
</action>
</rule>
</template>
</tree>
<body xmlns="http://www.w3.org/1999/xhtml">
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
</pre>
</body>
<script>
<![CDATA[
SimpleTest.waitForExplicitFinish();
function runTest()
{
var tree = $("tree");
var col = tree.columns[0].element;
synthesizeMouse(col, 12, 2, { });
checkRowOrder(tree, ["Cleopatra", "Ferdinand Magellan", "Julius Caesar", "Laura Secord", "Napoleon Bonaparte"], "acsending");
synthesizeMouse(col, 12, 2, { });
checkRowOrder(tree, ["Napoleon Bonaparte", "Laura Secord", "Julius Caesar", "Ferdinand Magellan", "Cleopatra"], "descending");
synthesizeMouse(col, 12, 2, { });
checkRowOrder(tree, ["Napoleon Bonaparte", "Laura Secord", "Julius Caesar", "Ferdinand Magellan", "Cleopatra"], "natural");
SimpleTest.finish();
}
function checkRowOrder(tree, expected, testid)
{
var index = 0;
var item = tree.firstChild.nextSibling.nextSibling.firstChild;
while (item && index < expected.length) {
if (item.firstChild.firstChild.getAttribute("label") != expected[index++])
break;
item = item.nextSibling;
}
ok(index == expected.length && !item, testid + " row order");
}
]]>
</script>
</window>