Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Issue 2799153008: Add back buttons and load new 'pages' by calling javascript. (Closed)

Created:
3 years, 8 months ago by BigBossZhiling
Modified:
3 years, 8 months ago
CC:
agrieve+watch_chromium.org, chromium-reviews, jbudorick+watch_chromium.org, mikecase+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add back buttons and load new 'pages' by calling javascript. Previously when we want to see the details inside a specific suite, we will go to a url '.../?suite=xxx'. This may not work in google storage. In this cl, I am changing the logic by calling javascript directly to change the content of the page, if the user wants to see a specific suite. Because we are not changing urls anymore, we need to have a "Back" button to go back to the main page. BUG=605572 Review-Url: https://codereview.chromium.org/2799153008 Cr-Commit-Position: refs/heads/master@{#463781} Committed: https://chromium.googlesource.com/chromium/src/+/9b4e899d21ec602a49cd050b800085cd22130c69

Patch Set 1 #

Patch Set 2 : remove obsolete functions #

Total comments: 8

Patch Set 3 : Fix the back button on browser. #

Patch Set 4 : remove the back buttons #

Patch Set 5 : removes unncessary code #

Patch Set 6 : remove unnecessary parts #

Patch Set 7 : git fix logic of back -- forward --back #

Patch Set 8 : address case's comment to remove default bucket #

Patch Set 9 : remove url manipulation so that we can refresh #

Total comments: 4

Patch Set 10 : address john's comments #

Total comments: 1

Patch Set 11 : john's comments #

Patch Set 12 : make bucket argument mandatory #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -27 lines) Patch
M build/android/pylib/results/presentation/javascript/main_html.js View 1 2 3 4 5 6 7 8 9 10 2 chunks +22 lines, -11 lines 0 comments Download
M build/android/pylib/results/presentation/template/main.html View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -1 line 0 comments Download
M build/android/pylib/results/presentation/template/table.html View 2 chunks +4 lines, -0 lines 0 comments Download
M build/android/pylib/results/presentation/test_results_presentation.py View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +27 lines, -15 lines 0 comments Download

Messages

Total messages: 24 (8 generated)
BigBossZhiling
3 years, 8 months ago (2017-04-07 22:08:32 UTC) #3
mikecase (-- gone --)
https://codereview.chromium.org/2799153008/diff/20001/build/android/pylib/results/presentation/template/main.html File build/android/pylib/results/presentation/template/main.html (right): https://codereview.chromium.org/2799153008/diff/20001/build/android/pylib/results/presentation/template/main.html#newcode47 build/android/pylib/results/presentation/template/main.html:47: <a class="back_button" onclick="showSuiteTableOnly();"><b><-- Back</b></br></br></a> ooooooh, I forgot we will ...
3 years, 8 months ago (2017-04-07 23:57:20 UTC) #4
mikecase (-- gone --)
https://codereview.chromium.org/2799153008/diff/20001/build/android/pylib/results/presentation/test_results_presentation.py File build/android/pylib/results/presentation/test_results_presentation.py (right): https://codereview.chromium.org/2799153008/diff/20001/build/android/pylib/results/presentation/test_results_presentation.py#newcode185 build/android/pylib/results/presentation/test_results_presentation.py:185: 'showTestsOfOneSuiteOnly(\'TOTAL\')', nit: use double quotes here instead of \' ...
3 years, 8 months ago (2017-04-10 17:03:07 UTC) #5
BigBossZhiling
https://codereview.chromium.org/2799153008/diff/20001/build/android/pylib/results/presentation/template/main.html File build/android/pylib/results/presentation/template/main.html (right): https://codereview.chromium.org/2799153008/diff/20001/build/android/pylib/results/presentation/template/main.html#newcode47 build/android/pylib/results/presentation/template/main.html:47: <a class="back_button" onclick="showSuiteTableOnly();"><b><-- Back</b></br></br></a> On 2017/04/07 23:57:20, mikecase wrote: ...
3 years, 8 months ago (2017-04-10 19:43:52 UTC) #6
BigBossZhiling
3 years, 8 months ago (2017-04-10 19:43:56 UTC) #7
BigBossZhiling
3 years, 8 months ago (2017-04-11 17:41:24 UTC) #8
jbudorick
https://codereview.chromium.org/2799153008/diff/160001/build/android/pylib/results/presentation/javascript/main_html.js File build/android/pylib/results/presentation/javascript/main_html.js (right): https://codereview.chromium.org/2799153008/diff/160001/build/android/pylib/results/presentation/javascript/main_html.js#newcode49 build/android/pylib/results/presentation/javascript/main_html.js:49: window.scrollTo(0, 0); Why are we now scrolling to the ...
3 years, 8 months ago (2017-04-11 17:52:47 UTC) #9
chromium-reviews
The reason now we are scrolling to the top is that, the browser thinks we ...
3 years, 8 months ago (2017-04-11 17:58:25 UTC) #10
BigBossZhiling
https://codereview.chromium.org/2799153008/diff/160001/build/android/pylib/results/presentation/javascript/main_html.js File build/android/pylib/results/presentation/javascript/main_html.js (right): https://codereview.chromium.org/2799153008/diff/160001/build/android/pylib/results/presentation/javascript/main_html.js#newcode49 build/android/pylib/results/presentation/javascript/main_html.js:49: window.scrollTo(0, 0); On 2017/04/11 17:52:47, jbudorick wrote: > Why ...
3 years, 8 months ago (2017-04-11 18:37:51 UTC) #11
jbudorick
https://codereview.chromium.org/2799153008/diff/180001/build/android/pylib/results/presentation/javascript/main_html.js File build/android/pylib/results/presentation/javascript/main_html.js (right): https://codereview.chromium.org/2799153008/diff/180001/build/android/pylib/results/presentation/javascript/main_html.js#newcode52 build/android/pylib/results/presentation/javascript/main_html.js:52: function testTablePage(suite_name, push_state) { My motivation w/ this suggestion ...
3 years, 8 months ago (2017-04-11 18:43:02 UTC) #12
BigBossZhiling
On 2017/04/11 18:43:02, jbudorick wrote: > https://codereview.chromium.org/2799153008/diff/180001/build/android/pylib/results/presentation/javascript/main_html.js > File build/android/pylib/results/presentation/javascript/main_html.js (right): > > https://codereview.chromium.org/2799153008/diff/180001/build/android/pylib/results/presentation/javascript/main_html.js#newcode52 > ...
3 years, 8 months ago (2017-04-11 18:52:22 UTC) #13
jbudorick
lgtm
3 years, 8 months ago (2017-04-11 18:55:18 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2799153008/200001
3 years, 8 months ago (2017-04-11 18:58:42 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2799153008/220001
3 years, 8 months ago (2017-04-11 20:17:40 UTC) #20
commit-bot: I haz the power
Committed patchset #12 (id:220001) as https://chromium.googlesource.com/chromium/src/+/9b4e899d21ec602a49cd050b800085cd22130c69
3 years, 8 months ago (2017-04-11 21:43:35 UTC) #23
BigBossZhiling
3 years, 8 months ago (2017-04-11 21:58:56 UTC) #24
Message was sent while issue was closed.
A revert of this CL (patchset #12 id:220001) has been created in
https://codereview.chromium.org/2814903002/ by hzl@google.com.

The reason for reverting is: Reverting because it broke stuff..

Powered by Google App Engine
This is Rietveld 408576698