<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,17 +1,19 @@
 function specsGoogleClosure(specs,context){
 	
-	function makeSlickTestSearch(selector, count, disableQSA) {
+	function makeSlickTestSearch(selector, count, disableQSA, rootNode) {
 		return function(){
 			context.Slick.disableQSA = !!disableQSA;
-			value_of( context.Slick(context.document, selector).length ).should_be( count );
+			value_of( context.Slick(rootNode, selector).length ).should_be( count );
 			delete context.Slick.disableQSA;
 		};
-	}
+	};
+	
 	function setup_it_should_find(specs){
-		return function it_should_find(count,selector){
+		return function it_should_find(count, selector, rootNodeId){
+			var rootNode = rootNodeId ? context.document.getElementById(rootNodeId) : context.document;
 			if (global.document.querySelectorAll)
-				specs['should find '+count+' `'+selector+'` with    QSA' ] = makeSlickTestSearch(selector, count, false);
-			specs['should find '+count+' `'+selector+'` without QSA' ] = makeSlickTestSearch(selector, count, true);
+				specs['should find '+count+' `'+selector+'` with    QSA' ] = makeSlickTestSearch(selector, count, false, rootNode);
+			specs['should find '+count+' `'+selector+'` without QSA' ] = makeSlickTestSearch(selector, count, true, rootNode);
 		};
 	};
 	</diff>
      <filename>test/specsGoogleClosure.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>98438cb8dba0faf7e944a6c1de3fee809465daf8</id>
    </parent>
  </parents>
  <author>
    <name>Fabio M. Costa</name>
    <email>fabiomcosta@gmail.com</email>
  </author>
  <url>http://github.com/subtleGradient/slick/commit/61ac64c02c1cf10405dbb4841b03500ebc35ad1b</url>
  <id>61ac64c02c1cf10405dbb4841b03500ebc35ad1b</id>
  <committed-date>2009-11-08T18:11:00-08:00</committed-date>
  <authored-date>2009-11-08T17:46:01-08:00</authored-date>
  <message>fix for the google specs, from 35 failing specs we got 21 failing now.</message>
  <tree>202f1cabfb09ca4b63787a66f13bdcd7a6940fe4</tree>
  <committer>
    <name>Fabio M. Costa</name>
    <email>fabiomcosta@gmail.com</email>
  </committer>
</commit>
