diff --git a/tests/integration/components/container-query/tagName-test.js b/tests/integration/components/container-query/tagName-test.js new file mode 100644 index 00000000..389eb9fe --- /dev/null +++ b/tests/integration/components/container-query/tagName-test.js @@ -0,0 +1,222 @@ +import { set } from '@ember/object'; +import { render, settled } from '@ember/test-helpers'; +import setupContainerQueryTest from 'dummy/tests/helpers/container-query'; +import resizeContainer from 'dummy/tests/helpers/resize-container'; +import { hbs } from 'ember-cli-htmlbars'; +import { setupRenderingTest } from 'ember-qunit'; +import { module, test } from 'qunit'; + +module('Integration | Component | container-query', function(hooks) { + setupRenderingTest(hooks); + setupContainerQueryTest(hooks); + + + module('When @tagName is undefined', function(hooks) { + hooks.beforeEach(async function() { + await render(hbs` +
{{CQ.features.small}}
+{{CQ.features.medium}}
+{{CQ.features.large}}
+ +{{CQ.features.short}}
+{{CQ.features.tall}}
+ +{{CQ.features.ratio-type-A}}
+{{CQ.features.ratio-type-B}}
+{{CQ.features.ratio-type-C}}
+ +{{CQ.dimensions.width}} x {{CQ.dimensions.height}}
+{{CQ.dimensions.aspectRatio}}
+{{CQ.features.small}}
+{{CQ.features.medium}}
+{{CQ.features.large}}
+ +{{CQ.features.short}}
+{{CQ.features.tall}}
+ +{{CQ.features.ratio-type-A}}
+{{CQ.features.ratio-type-B}}
+{{CQ.features.ratio-type-C}}
+ +{{CQ.dimensions.width}} x {{CQ.dimensions.height}}
+{{CQ.dimensions.aspectRatio}}
+{{CQ.features.small}}
+{{CQ.features.medium}}
+{{CQ.features.large}}
+ +{{CQ.features.short}}
+{{CQ.features.tall}}
+ +{{CQ.features.ratio-type-A}}
+{{CQ.features.ratio-type-B}}
+{{CQ.features.ratio-type-C}}
+ +{{CQ.dimensions.width}} x {{CQ.dimensions.height}}
+{{CQ.dimensions.aspectRatio}}
+