From a6eb9438252dba934b7e3fb36f5f148fe1796f15 Mon Sep 17 00:00:00 2001 From: Andrew Bonventre Date: Tue, 28 Jun 2016 16:37:41 -0400 Subject: [PATCH] Add change view actions JS interface This provides a simple interface for gr-change-actions for use by the JS API. It allows the author to not have to worry about implementation details of the element itself, while still providing a reduced-surface API contract that can be tested as the underlying element evolves. Feature: Issue 3915 Change-Id: I2f82060ea14adef93a7018b79bf7cf10b84e5735 --- .../gr-change-actions/gr-change-actions.html | 4 +- .../gr-change-actions/gr-change-actions.js | 64 ++++++--- .../gr-change-actions_test.html | 3 +- .../gr-change-actions-js-api.js | 62 +++++++++ .../gr-change-actions-js-api_test.html | 123 ++++++++++++++++++ .../gr-js-api-interface.html | 1 + .../gr-js-api-interface/gr-public-js-api.js | 6 +- polygerrit-ui/app/test/index.html | 1 + 8 files changed, 238 insertions(+), 26 deletions(-) create mode 100644 polygerrit-ui/app/elements/shared/gr-js-api-interface/gr-change-actions-js-api.js create mode 100644 polygerrit-ui/app/elements/shared/gr-js-api-interface/gr-change-actions-js-api_test.html diff --git a/polygerrit-ui/app/elements/change/gr-change-actions/gr-change-actions.html b/polygerrit-ui/app/elements/change/gr-change-actions/gr-change-actions.html index d2026f6ef2..b741784398 100644 --- a/polygerrit-ui/app/elements/change/gr-change-actions/gr-change-actions.html +++ b/polygerrit-ui/app/elements/change/gr-change-actions/gr-change-actions.html @@ -59,7 +59,7 @@ limitations under the License. }
-