[Pkg-javascript-commits] [dojo] 53/87: Query engine should not be tested in quirks mode. Fixes #16113. Backport to 1.7.

David Prévot taffit at moszumanska.debian.org
Thu Aug 21 17:39:20 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag 1.7.5
in repository dojo.

commit bdb368fe3ee863e59f5f5b91ba33cd3a71d734c1
Author: Colin Snover <github.com at zetafleet.com>
Date:   Fri Nov 23 06:39:29 2012 +0000

    Query engine should not be tested in quirks mode. Fixes #16113. Backport to 1.7.
    
    git-svn-id: http://svn.dojotoolkit.org/src/branches/1.7/dojo@30023 560b804f-0ae3-0310-86f3-f6aa0a117693
---
 tests/_base/query.html | 84 ++------------------------------------------------
 1 file changed, 2 insertions(+), 82 deletions(-)

diff --git a/tests/_base/query.html b/tests/_base/query.html
index ce4f208..2c814dc 100644
--- a/tests/_base/query.html
+++ b/tests/_base/query.html
@@ -1,3 +1,4 @@
+<!DOCTYPE html>
 <html>
 	<head>
 		<title>testing dojo.query()</title>
@@ -6,8 +7,7 @@
 		</style>
 		<script type="text/javascript" src="../../dojo.js" data-dojo-config="isDebug: true"></script>
 		<script type="text/javascript">
-			require(["dojo", "doh", "dojo/query!lite", "dojo/io/iframe", "dojo/domReady!"], function(dojo, doh, query){
-				queryLite = query; // make a global
+			require(["dojo", "doh", "dojo/io/iframe", "dojo/domReady!"], function(dojo, doh){
 				function createDocument(xml){
 					var fauxXhr = { responseText: xml };
 					if("DOMParser" in dojo.global){
@@ -21,86 +21,6 @@
 				doh.register("t", 
 					[
 						// basic sanity checks
-						"doh.is(4, (queryLite('h3')).length);",
-						"doh.is(1, (queryLite('#t')).length);",
-						"doh.is(1, (queryLite('#bug')).length);",
-						"doh.is(4, (queryLite('#t h3')).length);",
-						"doh.is(0, (queryLite('span#t')).length);",
-						"doh.is(0, (queryLite('.bogus')).length);",
-						"doh.is(0, (queryLite('.bogus', dojo.byId('container'))).length);",
-						"doh.is(0, (queryLite('#bogus')).length);",
-						"doh.is(0, (queryLite('#bogus', dojo.byId('container'))).length);",
-						"doh.is(1, (queryLite('#t div > h3')).length);",
-						"doh.is(2, (queryLite('.foo')).length);",
-						"doh.is(1, (queryLite('.foo.bar')).length);",
-						"doh.is(2, (queryLite('.baz')).length);",
-						"doh.is(3, (queryLite('#t > h3')).length);",
-
-						"doh.is(2, (queryLite('#baz,#foo,#t')).length);",
-
-						// syntactic equivalents
-						"doh.is(12, (queryLite('#t > *')).length);",
-						"doh.is(3, (queryLite('.foo > *')).length);",
-
-						// with a root, by ID
-						"doh.is(3, (queryLite('> *', 'container')).length);",
-						"doh.is(3, (queryLite('> h3', 't')).length);",
-
-						// compound queries
-						"doh.is(2, (queryLite('.foo, .bar')).length);",
-						"doh.is(2, (queryLite('.foo,.bar')).length);",
-
-						// multiple class attribute
-						"doh.is(1, (queryLite('.foo.bar')).length);",
-						"doh.is(2, (queryLite('.foo')).length);",
-						"doh.is(2, (queryLite('.baz')).length);",
-
-						// case sensitivity
-						"doh.is(1, (queryLite('span.baz')).length);",
-						"doh.is(1, (queryLite('sPaN.baz')).length);",
-						"doh.is(1, (queryLite('SPAN.baz')).length);",
-						"doh.is(2, (queryLite('[foo~=\"bar\"]')).length);",
-
-						"doh.is(3, (queryLite('[foo]')).length);",
-						"doh.is(1, (queryLite('[foo$=\"thud\"]')).length);",
-						"doh.is(1, (queryLite('[foo$=thud]')).length);",
-						"doh.is(1, (queryLite('[foo$=\"thudish\"]')).length);",
-						"doh.is(1, (queryLite('#t [foo$=thud]')).length);",
-						"doh.is(1, (queryLite('#t [title$=thud]')).length);",
-						"doh.is(0, (queryLite('#t span[title$=thud ]')).length);",
-						"doh.is(2, (queryLite('[foo|=\"bar\"]')).length);",
-						"doh.is(1, (queryLite('[foo|=\"bar-baz\"]')).length);",
-						"doh.is(0, (queryLite('[foo|=\"baz\"]')).length);",
-
-						// descendant selectors
-						"doh.is(3, queryLite('> *', 'container').length);",
-						"doh.is(2, queryLite('> [qux]', 'container').length);",
-						"doh.is('child1', queryLite('> [qux]', 'container')[0].id);",
-						"doh.is('child3', queryLite('> [qux]', 'container')[1].id);",
-						"doh.is(3, queryLite('> *', 'container').length);",
-						"doh.is(3, queryLite('>*', 'container').length);",
-						"doh.is('passed', queryLite('#bug')[0].value);",
-
-						// bug 9071
-						"doh.is(2, (queryLite('a', 't4')).length);",
-						"doh.is(2, (queryLite('p a', 't4')).length);",
-						"doh.is(2, (queryLite('div p', 't4')).length);",
-						"doh.is(2, (queryLite('div p a', 't4')).length);",
-						"doh.is(2, (queryLite('.subA', 't4')).length);",
-						"doh.is(2, (queryLite('.subP .subA', 't4')).length);",
-						"doh.is(2, (queryLite('.subDiv .subP', 't4')).length);",
-						"doh.is(2, (queryLite('.subDiv .subP .subA', 't4')).length);",
-
-
-						// failed scope arg
-						"doh.is(0, (queryLite('*', 'thinger')).length);",
-						"doh.is(0, (queryLite('div#foo').length));",
-
-						// "doh.t(false, 'howdy!')",
-						// "doh.f(true, 'howdy!')",
-						// "doh.e(Error, window, function(){ throw new Error(); })",
-
-						// basic sanity checks
 						"doh.is(4, (dojo.query('h3')).length);",
 						"doh.is(1, (dojo.query('h1:first-child')).length);",
 						"doh.is(2, (dojo.query('h3:first-child')).length);",

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/dojo.git



More information about the Pkg-javascript-commits mailing list