Merge "Fix patch range dropdown not updating the file list" into stable-2.15
This commit is contained in:
@@ -434,8 +434,8 @@ limitations under the License.
|
|||||||
shown-file-count="[[_shownFileCount]]"
|
shown-file-count="[[_shownFileCount]]"
|
||||||
diff-prefs="[[_diffPrefs]]"
|
diff-prefs="[[_diffPrefs]]"
|
||||||
diff-view-mode="{{viewState.diffMode}}"
|
diff-view-mode="{{viewState.diffMode}}"
|
||||||
patch-num="{{_patchNum}}"
|
patch-num="{{_patchRange.patchNum}}"
|
||||||
base-patch-num="{{_basePatchNum}}"
|
base-patch-num="{{_patchRange.basePatchNum}}"
|
||||||
revisions="[[_sortedRevisions]]"
|
revisions="[[_sortedRevisions]]"
|
||||||
on-open-diff-prefs="_handleOpenDiffPrefs"
|
on-open-diff-prefs="_handleOpenDiffPrefs"
|
||||||
on-open-download-dialog="_handleOpenDownloadDialog"
|
on-open-download-dialog="_handleOpenDownloadDialog"
|
||||||
|
|||||||
@@ -221,7 +221,6 @@
|
|||||||
'_labelsChanged(_change.labels.*)',
|
'_labelsChanged(_change.labels.*)',
|
||||||
'_paramsAndChangeChanged(params, _change)',
|
'_paramsAndChangeChanged(params, _change)',
|
||||||
'_updateSortedRevisions(_change.revisions.*)',
|
'_updateSortedRevisions(_change.revisions.*)',
|
||||||
'_patchRangeChanged(_patchRange.*)',
|
|
||||||
],
|
],
|
||||||
|
|
||||||
keyBindings: {
|
keyBindings: {
|
||||||
@@ -322,15 +321,6 @@
|
|||||||
window.location.reload();
|
window.location.reload();
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
|
||||||
* Called when the patch range changes. does not detect sub property
|
|
||||||
* updates.
|
|
||||||
*/
|
|
||||||
_patchRangeChanged() {
|
|
||||||
this._basePatchNum = this._patchRange.basePatchNum;
|
|
||||||
this._patchNum = this._patchRange.patchNum;
|
|
||||||
},
|
|
||||||
|
|
||||||
_handleCommitMessageCancel(e) {
|
_handleCommitMessageCancel(e) {
|
||||||
this._editingCommitMessage = false;
|
this._editingCommitMessage = false;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -790,9 +790,8 @@ limitations under the License.
|
|||||||
status: 'NEW',
|
status: 'NEW',
|
||||||
labels: {},
|
labels: {},
|
||||||
};
|
};
|
||||||
element._basePatchNum = 1;
|
element._patchRange = {basePatchNum: 1, patchNum: 2};
|
||||||
element._patchNum = 2;
|
element.$.fileListHeader.patchNum = 3;
|
||||||
element._patchNum = 3;
|
|
||||||
assert.equal(navigateToChangeStub.callCount, 1);
|
assert.equal(navigateToChangeStub.callCount, 1);
|
||||||
assert.isTrue(navigateToChangeStub.lastCall
|
assert.isTrue(navigateToChangeStub.lastCall
|
||||||
.calledWithExactly(element._change, 3, 1));
|
.calledWithExactly(element._change, 3, 1));
|
||||||
|
|||||||
Reference in New Issue
Block a user