Merge "Update gr-comment-api"

This commit is contained in:
Becky Siegel
2017-11-07 21:23:46 +00:00
committed by Gerrit Code Review
12 changed files with 514 additions and 327 deletions

View File

@@ -241,6 +241,15 @@ limitations under the License.
});
});
test('comments are reloaded when reload-comments fired', () => {
const reloadStub = sandbox.stub(element.$.commentAPI, 'loadAll')
.returns(Promise.resolve());
element.$.fileList.fire('reload-comments', {
resolve: () => { return Promise.resolve(); },
});
assert.isTrue(reloadStub.called);
});
test('download tap calls _handleOpenDownloadDialog', () => {
sandbox.stub(element, '_handleOpenDownloadDialog');
element.$.actions.fire('download-tap');