1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/xul/templates/tests/chrome/test_tmpl_whereequalsnegationignorecase.xul Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,63 @@ 1.4 +<?xml version="1.0"?> 1.5 +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> 1.6 +<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?> 1.7 + 1.8 +<!-- 1.9 + where - equals negation ignore case 1.10 +--> 1.11 + 1.12 +<window title="XUL Template Tests" width="500" height="600" 1.13 + onload="test_template();" 1.14 + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> 1.15 + <script type="application/javascript" 1.16 + src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> 1.17 + 1.18 + <body xmlns="http://www.w3.org/1999/xhtml" style="height: 300px; overflow: auto;"/> 1.19 + 1.20 + <data id="output"> 1.21 + <label id="http://www.some-fictitious-zoo.com/mammals/lion" value="Lion"/> 1.22 + <label id="http://www.some-fictitious-zoo.com/mammals/hippopotamus" value="HIPPOPOTAMUS"/> 1.23 + <label id="http://www.some-fictitious-zoo.com/mammals/llama" value="LLAMA"/> 1.24 + <label id="http://www.some-fictitious-zoo.com/mammals/polarbear" value="Polar Bear"/> 1.25 + <label id="http://www.some-fictitious-zoo.com/mammals/aardvark" value="aardvark"/> 1.26 + <label id="http://www.some-fictitious-zoo.com/mammals/ninebandedarmadillo" value="Nine-banded Armadillo"/> 1.27 + <label id="http://www.some-fictitious-zoo.com/mammals/gorilla" value="Gorilla"/> 1.28 + </data> 1.29 + 1.30 +<script src="templates_shared.js"/> 1.31 + 1.32 +<script> 1.33 +<![CDATA[ 1.34 +SimpleTest.waitForExplicitFinish(); 1.35 + 1.36 +var testid ="where - equals negation ignore case"; 1.37 +var queryType = "rdf"; 1.38 +var isTreeBuilder = false; 1.39 +var needsOpen = false; 1.40 +var notWorkingYet = false; 1.41 +var notWorkingYetDynamic = false; 1.42 +var expectedOutput = document.getElementById("output"); 1.43 + 1.44 +var changes = []; 1.45 +]]> 1.46 +</script> 1.47 + 1.48 +<vbox xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" id="root" datasources="rdf:null" ref="http://www.some-fictitious-zoo.com/mammals"> 1.49 +<template id="template"> 1.50 +<query id="query"> 1.51 +<content uri="?uri"/> 1.52 +<member container="?uri" child="?animal"/> 1.53 +<triple subject="?animal" predicate="http://www.some-fictitious-zoo.com/rdf#name" object="?name"/> 1.54 +</query> 1.55 +<rule> 1.56 +<conditions id="conditions"> 1.57 +<where subject="?name" rel="equals" negate="true" ignorecase="true" value="AFRICAN Elephant"/> 1.58 +</conditions> 1.59 +<action id="action"> 1.60 +<label uri="?animal" value="?name"/> 1.61 +</action> 1.62 +</rule> 1.63 +</template> 1.64 +</vbox> 1.65 + 1.66 +</window>