| Index: remoting/webapp/unittests/base_unittest.js
|
| diff --git a/remoting/webapp/unittests/base_unittest.js b/remoting/webapp/unittests/base_unittest.js
|
| index a002bdf69b60d1719eb4baad737b34afa9834584..a37715c30962c2e143851cabfe2a9ede69f1b6d1 100644
|
| --- a/remoting/webapp/unittests/base_unittest.js
|
| +++ b/remoting/webapp/unittests/base_unittest.js
|
| @@ -75,6 +75,12 @@ test('urljoin(url, opt_param) should urlencode |opt_param|',
|
| '&escapist=%3A%2F%3F%23%5B%5D%40%24%26%2B%2C%3B%3D');
|
| });
|
|
|
| +test('escapeHTML(str) should escape special characters', function() {
|
| + QUnit.equal(
|
| + base.escapeHTML('<script>alert("hello")</script>'),
|
| + '<script>alert("hello")</script>');
|
| +});
|
| +
|
| QUnit.asyncTest('Promise.sleep(delay) should fulfill the promise after |delay|',
|
| function() {
|
| var isCalled = false;
|
|
|