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:
Urs Wolfer
2016-03-14 17:45:27 +01:00
parent f531d0aeb9
commit fcae3a41e6

View File

@@ -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');
});