Skip to content

Commit

Permalink
Merge remote-tracking branch 'arian/master'
Browse files Browse the repository at this point in the history
Conflicts:
	Source/Slick.Finder.js
  • Loading branch information
subtleGradient committed Mar 26, 2011
2 parents 0ba2ca1 + 2a3c8c7 commit d34487d
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Configuration.js
Expand Up @@ -21,7 +21,7 @@ Configuration.sets = {
'specs': {
path: 'specs/',
files: [
'unit', 'syntax', 'api', 'engine_bugs', 'html', 'html5',
'unit', 'syntax', 'api', 'engine_bugs', 'html', 'html5',
'select_nth-child', 'select_exhaustive', 'mock_template',
'isxml', 'xml',
'match', 'parser',
Expand Down
4 changes: 4 additions & 0 deletions mocks/query_test-slick.html
Expand Up @@ -12,5 +12,9 @@
<div id="divtabindex0" tabindex="0">some</div>
<div id="divtabindex1" tabindex="1">some</div>
<div id="divtabindexnull">some</div>

<div id="one"><i>text</i></div>
<div id="two"></div>

</body>
</html>
4 changes: 2 additions & 2 deletions setup.js
Expand Up @@ -19,7 +19,7 @@ global.onload = function(){
if (!Browser.ie || Browser.version > 8){
Mock.CreateTemplate('Generic XHTML', '../mocks/template.xhtml');
Mock.CreateTemplate('Generic XML', '../mocks/template.xml');
Mock.CreateTemplate('SVG', '../mocks/mootools_logo.svg');
Mock.CreateTemplate('SVG', '../mocks/MooTools_Logo.svg');
}

if (Browser.ie){
Expand All @@ -39,7 +39,7 @@ global.onload = function(){


new Mock.Request('XML responseXML', '../mocks/xml.xml');
new Mock.Request('SVG responseXML', '../mocks/mootools_logo.svg');
new Mock.Request('SVG responseXML', '../mocks/MooTools_Logo.svg');

// Setup

Expand Down
23 changes: 22 additions & 1 deletion specs/html.js
Expand Up @@ -32,6 +32,27 @@ describe('Slick', function(){
itShouldFind(2, 'body [tabindex="1"]');
itShouldFind(4, 'body [tabindex]');

describe('Combinators', function(){

it('should find `~`', function(){
expect(context.SELECT1(context.document.getElementById('one'), '~')).not.toBeNull();
});
it('should find `~div`', function(){
expect(context.SELECT1(context.document.getElementById('one'), '~div')).not.toBeNull();
});
it('should find `> i`', function(){
expect(context.SELECT1(context.document.getElementById('one'), '> i')).not.toBeNull();
});
it('should find `+`', function(){
expect(context.SELECT1(context.document.getElementById('one'), '+')).not.toBeNull();
});
it('should find `+div`', function(){
expect(context.SELECT1(context.document.getElementById('one'), '+div')).not.toBeNull();
});

});


});

};
};

0 comments on commit d34487d

Please sign in to comment.