Make test working in Edge
Accessing property 'href' leads in un-encoded string in Edge only. Accessing attribute 'href' leads in un-encoded string in all browsers. Change-Id: I2df7a674de9ddff9fb8daa1acefdabb20455fed5
This commit is contained in:
@@ -126,8 +126,8 @@ limitations under the License.
|
||||
test('html field in link config', function() {
|
||||
element.content = 'google:do a barrel roll';
|
||||
var linkEl = element.$.output.childNodes[0];
|
||||
assert.equal(linkEl.href,
|
||||
'https://google.com/search?q=do%20a%20barrel%20roll');
|
||||
assert.equal(linkEl.getAttribute('href'),
|
||||
'https://google.com/search?q=do a barrel roll');
|
||||
assert.equal(linkEl.textContent, 'do a barrel roll');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user