Skip to content

Commit

Permalink
correcting test names
Browse files Browse the repository at this point in the history
  • Loading branch information
danielo committed Dec 12, 2016
1 parent 253a739 commit 7be8c84
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
assertEquals(element.innerHTML, 'foo');
},

'test_setNodeText_SetsTheTextContentsOnANonEmptyElement': function() {
'test #setNodeText sets the text contents on a non empty element': function() {
var element = document.createElement('DIV');
element.innerHTML = 'bar';

Expand All @@ -20,7 +20,7 @@
assertEquals(element.innerHTML, 'foo');
},

'test getAncestorElementWithClass returns current element when it has matching class': function() {
'test #getAncestorElementWithClass returns current element when it has matching class': function() {
var element = document.createElement('DIV');
element.className = "myClass";

Expand All @@ -29,7 +29,7 @@
assertEquals(element, returnElement);
},

'test getAncestorElementWithClass returns current element when it has multiple classes including the matching class': function() {
'test #getAncestorElementWithClass returns current element when it has multiple classes including the matching class': function() {
var element = document.createElement('DIV');
element.className = "myClass myOtherClass";

Expand All @@ -38,15 +38,15 @@
assertEquals(element, returnElement);
},

'test getAncestorElementWithClass returns null when using an svg element with no class': function() {
'test #getAncestorElementWithClass returns null when using an svg element with no class': function() {
var element = document.createElementNS("http://www.w3.org/2000/svg", "svg");

var returnElement = ElementUtility.getAncestorElementWithClass(element, "myClass");

assertEquals(null, returnElement);
},

'test getAncestorElementWithClass returns current element when using an svg element containing the matching class': function() {
'test #getAncestorElementWithClass returns current element when using an svg element containing the matching class': function() {
var element = document.createElementNS("http://www.w3.org/2000/svg", "svg");
element.setAttribute("class", "myClass myOtherClass");

Expand Down

0 comments on commit 7be8c84

Please sign in to comment.