Add Debugger API to test/ and changed E2E tests to use them#208
Add Debugger API to test/ and changed E2E tests to use them#208kjin merged 6 commits intogoogleapis:masterfrom
Conversation
test/debugger.js
Outdated
| */ | ||
| function Debugger() { | ||
| common.ServiceObject.call(this, { | ||
| parent: new Debug({}), |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
test/debugger.js
Outdated
| /** @private {string} */ | ||
| this.nextWaitToken_ = null; | ||
|
|
||
| this.clientVersion_ = pjson.name + '/default/v' + pjson.version; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
|
||
| /** | ||
| * Gets a list of breakpoints in a given debuggee. | ||
| * @param {string} debuggeeId - The ID of the debuggee whose breakpoints should |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
test/debugger.js
Outdated
| * Gets a list of breakpoints in a given debuggee. | ||
| * @param {string} debuggeeId - The ID of the debuggee whose breakpoints should | ||
| * be listed. | ||
| * @param {Object} options - An object containing options on the list of |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
test/debugger.js
Outdated
| if (err) { | ||
| callback(err); | ||
| } else if (!response) { | ||
| callback(err || new Error('unknown error - request response missing')); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
test/debugger.js
Outdated
| if (err) { | ||
| callback(err); | ||
| } else if (!response) { | ||
| callback(err || new Error('unknown error - request response missing')); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| }); | ||
| }; | ||
|
|
||
| module.exports = Debugger; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
test/debugger.js
Outdated
| if (err) { | ||
| callback(err); | ||
| } else if (!response) { | ||
| callback(err || new Error('unknown error - request response missing')); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
test/e2e/package.json
Outdated
| "lodash": "^3.9.3", | ||
| "semver": "^5.3.0" | ||
| "semver": "^5.3.0", | ||
| "thenify-all": "^1.6.0" |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
test/debugger.jshas an interface that makes calls to the Cloud Debugger API.test/e2e/test-breakpoints.jsandtest/e2e/test-log-throttling.jsuse this file.