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

Issue 264923009: Add browser_test for extension app API with missing schema (Closed)

Created:
6 years, 7 months ago by James Cook
Modified:
6 years, 7 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Add browser_test for extension app API with missing schema This is a simplified version of api_test/stubs. It touches all the parts of each chrome.foo.bar.baz API path and ensures they are defined. This catches cases where a developer adding an API to _api_features.json but did not provide a schema for them. BUG=369318 TEST=added browser_tests ExtensionApiTest.StubsApp R=kalman@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=268949

Patch Set 1 #

Total comments: 15

Patch Set 2 : cleanup #

Total comments: 3

Patch Set 3 : review comments #

Patch Set 4 : rebase #

Patch Set 5 : rebase, automation permission #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -0 lines) Patch
M chrome/browser/extensions/stubs_apitest.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/_permission_features.json View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/stubs_app/background.js View 1 2 1 chunk +79 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/stubs_app/manifest.json View 1 2 3 4 1 chunk +45 lines, -0 lines 0 comments Download
M extensions/common/api/_permission_features.json View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
James Cook
kalman, PTAL I'm not very experienced with JS, so please let me know where I ...
6 years, 7 months ago (2014-05-02 22:00:16 UTC) #1
not at google - send to devlin
fun reviewing old code :) and... sheesh. https://codereview.chromium.org/264923009/diff/1/chrome/test/data/extensions/api_test/stubs_app/background.js File chrome/test/data/extensions/api_test/stubs_app/background.js (right): https://codereview.chromium.org/264923009/diff/1/chrome/test/data/extensions/api_test/stubs_app/background.js#newcode11 chrome/test/data/extensions/api_test/stubs_app/background.js:11: return typeof(feature.extension_types) ...
6 years, 7 months ago (2014-05-02 22:19:57 UTC) #2
James Cook
https://codereview.chromium.org/264923009/diff/1/chrome/test/data/extensions/api_test/stubs_app/background.js File chrome/test/data/extensions/api_test/stubs_app/background.js (right): https://codereview.chromium.org/264923009/diff/1/chrome/test/data/extensions/api_test/stubs_app/background.js#newcode67 chrome/test/data/extensions/api_test/stubs_app/background.js:67: // Not the last component. Allowed to be undefined ...
6 years, 7 months ago (2014-05-02 23:01:39 UTC) #3
not at google - send to devlin
https://codereview.chromium.org/264923009/diff/1/chrome/test/data/extensions/api_test/stubs_app/background.js File chrome/test/data/extensions/api_test/stubs_app/background.js (right): https://codereview.chromium.org/264923009/diff/1/chrome/test/data/extensions/api_test/stubs_app/background.js#newcode67 chrome/test/data/extensions/api_test/stubs_app/background.js:67: // Not the last component. Allowed to be undefined ...
6 years, 7 months ago (2014-05-02 23:03:17 UTC) #4
James Cook
kalman, please take another look. https://codereview.chromium.org/264923009/diff/1/chrome/test/data/extensions/api_test/stubs_app/background.js File chrome/test/data/extensions/api_test/stubs_app/background.js (right): https://codereview.chromium.org/264923009/diff/1/chrome/test/data/extensions/api_test/stubs_app/background.js#newcode11 chrome/test/data/extensions/api_test/stubs_app/background.js:11: return typeof(feature.extension_types) == "undefined" ...
6 years, 7 months ago (2014-05-02 23:59:14 UTC) #5
not at google - send to devlin
lgtm does this mean that in theory we need to go and fix the old ...
6 years, 7 months ago (2014-05-03 00:12:43 UTC) #6
James Cook
https://codereview.chromium.org/264923009/diff/20001/chrome/test/data/extensions/api_test/stubs_app/background.js File chrome/test/data/extensions/api_test/stubs_app/background.js (right): https://codereview.chromium.org/264923009/diff/20001/chrome/test/data/extensions/api_test/stubs_app/background.js#newcode19 chrome/test/data/extensions/api_test/stubs_app/background.js:19: ["functions", "events"].forEach(function(section) { On 2014/05/03 00:12:43, kalman wrote: > ...
6 years, 7 months ago (2014-05-05 16:36:26 UTC) #7
James Cook
The CQ bit was checked by jamescook@chromium.org
6 years, 7 months ago (2014-05-05 16:36:29 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/264923009/60001
6 years, 7 months ago (2014-05-05 16:36:38 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-06 07:13:26 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #2). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-06 09:19:47 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-06 11:16:02 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium
6 years, 7 months ago (2014-05-06 11:16:02 UTC) #13
James Cook
The CQ bit was checked by jamescook@chromium.org
6 years, 7 months ago (2014-05-06 16:23:43 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/264923009/80001
6 years, 7 months ago (2014-05-06 16:23:54 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-07 02:44:41 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #2). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-07 08:47:06 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-07 11:14:08 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium
6 years, 7 months ago (2014-05-07 11:14:09 UTC) #19
James Cook
The CQ bit was checked by jamescook@chromium.org
6 years, 7 months ago (2014-05-07 13:59:10 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/264923009/80001
6 years, 7 months ago (2014-05-07 13:59:47 UTC) #21
James Cook
Committed patchset #5 manually as r268949 (presubmit successful).
6 years, 7 months ago (2014-05-07 21:17:41 UTC) #22
James Cook
On 2014/05/07 21:17:41, James Cook wrote: > Committed patchset #5 manually as r268949 (presubmit successful). ...
6 years, 7 months ago (2014-05-09 03:30:37 UTC) #23
not at google - send to devlin
On 2014/05/09 03:30:37, James Cook wrote: > On 2014/05/07 21:17:41, James Cook wrote: > > ...
6 years, 7 months ago (2014-05-09 04:32:24 UTC) #24
James Cook
6 years, 7 months ago (2014-05-09 04:46:56 UTC) #25
Message was sent while issue was closed.
On 2014/05/09 04:32:24, kalman wrote:
> On 2014/05/09 03:30:37, James Cook wrote:
> > On 2014/05/07 21:17:41, James Cook wrote:
> > > Committed patchset #5 manually as r268949 (presubmit successful).
> > 
> > Patch reverted because it leaks a file "about" (from "about:blank") in the
> > working directory, which causes 70 other browser_tests failures.
> 
> How does it manage that?

See crbug.com/371030 for details. I caused a 15 hour outage by landing this
patch. :-(

Powered by Google App Engine
This is Rietveld 408576698