-
Notifications
You must be signed in to change notification settings - Fork 14
/
jq-extensions.output.js
51 lines (46 loc) · 1.94 KB
/
jq-extensions.output.js
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
import { find, findAll } from '@ember/test-helpers';
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
import ANY_SELECTOR_AS_IMPORTED_CONST from './constants';
const JQEXTENSION_SELECTOR_AS_LOCAL_CONST = '.foo:first';
const NORMAL_SELECTOR = '.foo';
const NORMAL_PSEUDO_SELECTOR = '.foo:eq(0)';
moduleForComponent('foo-bar', 'Integration | Component | foo bar', {
integration: true
});
test('it renders', function(assert) {
this.render(hbs`{{foo-bar}}`);
assert.ok(this.$('.foo:even').length);
assert.ok(this.$('.foo:odd').length);
assert.ok(this.$('.foo:contains(foo)').length);
assert.ok(this.$('.foo:has(p)').length);
assert.ok(this.$('.foo:animated').length);
assert.ok(this.$('.foo:checkbox').length);
assert.ok(this.$('.foo:file').length);
assert.ok(this.$('.foo:first').length);
assert.ok(this.$('.foo:gt(2)').length);
assert.ok(this.$('.foo:header').length);
assert.ok(this.$('.foo:hidden').length);
assert.ok(this.$('.foo:image').length);
assert.ok(this.$('.foo:input').length);
assert.ok(this.$('.foo:last').length);
assert.ok(this.$('.foo:lt(2)').length);
assert.ok(this.$('.foo:parent').length);
assert.ok(this.$('.foo:password').length);
assert.ok(this.$('.foo:radio').length);
assert.ok(this.$('.foo:reset').length);
assert.ok(findAll('.foo:checked').length);
assert.ok(this.$(':selected').length);
assert.ok(this.$('.foo:submit').length);
assert.ok(this.$('.foo:text').length);
assert.ok(this.$('.foo:visible').length);
assert.ok(this.$(JQEXTENSION_SELECTOR_AS_LOCAL_CONST).length);
assert.ok(this.$(ANY_SELECTOR_AS_IMPORTED_CONST).length);
assert.ok(this.$(':eq(0)').length);
assert.ok(findAll(find('.foo')).length);
assert.ok(findAll('.foo')[1].length);
assert.ok(findAll('.foo:first-child').length);
assert.ok(findAll('.foo:last-child').length);
assert.ok(findAll(NORMAL_SELECTOR).length);
assert.ok(this.$(NORMAL_PSEUDO_SELECTOR).length);
});