forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 2
/
test_tmpl_storage_sortintegerasc.xul
76 lines (66 loc) · 2.85 KB
/
test_tmpl_storage_sortintegerasc.xul
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?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"?>
<!--
storage sort integer asc
-->
<window title="XUL Template Tests" width="500" height="600"
onload="test_template();"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/javascript"
src="chrome://mochikit/content/MochiKit/packed.js"></script>
<script type="application/javascript"
src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
<body xmlns="http://www.w3.org/1999/xhtml" style="height: 300px; overflow: auto;"/>
<script src="templates_shared.js"/>
<script>
<![CDATA[
SimpleTest.waitForExplicitFinish();
copyToProfile('animals.sqlite');
var testid ="storage sort integer asc";
var queryType = "storage";
var isTreeBuilder = false;
var needsOpen = false;
var notWorkingYet = false;
var notWorkingYetDynamic = false;
var expectedOutput =
<output>
<row anyid="true"> <label value="1"/> <label value="Tarantula"/> </row>
<row anyid="true"> <label value="2"/> <label value="Emu"/> </row>
<row anyid="true"> <label value="3"/> <label value="Barn Owl"/> </row>
<row anyid="true"> <label value="4"/> <label value="Raven"/> </row>
<row anyid="true"> <label value="5"/> <label value="Cod"/> </row>
<row anyid="true"> <label value="6"/> <label value="Swordfish"/> </row>
<row anyid="true"> <label value="7"/> <label value="Lion"/> </row>
<row anyid="true"> <label value="8"/> <label value="HIPPOPOTAMUS"/> </row>
<row anyid="true"> <label value="9"/> <label value="African Elephant"/> </row>
<row anyid="true"> <label value="10"/> <label value="LAMA"/> </row>
<row anyid="true"> <label value="11"/> <label value="Polar Bear"/> </row>
<row anyid="true"> <label value="12"/> <label value="aardvark"/> </row>
<row anyid="true"> <label value="13"/> <label value="Nine-banded Armadillo"/> </row>
<row anyid="true"> <label value="14"/> <label value="Gorilla"/> </row>
<row anyid="true"> <label value="15"/> <label value="Anaconda"/> </row>
<row anyid="true"> <label value="16"/> <label value="Chameleon"/> </row>
</output>;
var changes = [];
]]>
</script>
<grid xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" >
<columns>
<column flex="1"/>
<column flex="3"/>
</columns>
<rows id="root" datasources="profile:animals.sqlite" querytype="storage" ref="."
sort="?id" sortDirection="ascending">
<template>
<query>SELECT id, name FROM animals</query>
<action>
<row uri="?">
<label value="?id"/>
<label value="?name"/>
</row>
</action>
</template>
</rows>
</grid>
</window>