Skip to content

Commit

Permalink
runtime/test: Fix foreignObject casing
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed Dec 22, 2018
1 parent 0d75be5 commit e26a83d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/@glimmer/runtime/test/updating-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2910,7 +2910,7 @@ QUnit.module('Updating SVG', hooks => {
render(template, object);

function assertNamespaces() {
if (assertNodeTagName(svg.firstChild, 'foreignobject')) {
if (assertNodeTagName(svg.firstChild, 'foreignObject')) {
assert.equal(svg.firstChild.namespaceURI, SVG_NAMESPACE);
if (assertNodeTagName(svg.firstChild.firstChild, 'div')) {
assert.equal(svg.firstChild.firstChild.namespaceURI, XHTML_NAMESPACE);
Expand Down Expand Up @@ -2947,7 +2947,7 @@ QUnit.module('Updating SVG', hooks => {
function assertNamespaces() {
if (assertNodeTagName(root.firstChild, 'svg')) {
assert.equal(root.firstChild.namespaceURI, SVG_NAMESPACE);
if (assertNodeTagName(root.firstChild.firstChild, 'foreignobject')) {
if (assertNodeTagName(root.firstChild.firstChild, 'foreignObject')) {
assert.equal(root.firstChild.firstChild.namespaceURI, SVG_NAMESPACE);
if (assertNodeTagName(root.firstChild.firstChild.firstChild, 'div')) {
assert.equal(root.firstChild.firstChild.firstChild.namespaceURI, XHTML_NAMESPACE);
Expand Down Expand Up @@ -3117,7 +3117,7 @@ QUnit.module('Updating SVG', hooks => {

equalTokens(root, `<svg>${context.content}</svg><div></div>`);
assertNamespaces(svg => {
if (assertNodeTagName(svg.firstChild, 'foreignobject')) {
if (assertNodeTagName(svg.firstChild, 'foreignObject')) {
assert.equal(
svg.firstChild.namespaceURI,
SVG_NAMESPACE,
Expand Down

0 comments on commit e26a83d

Please sign in to comment.