Skip to content

Add presubmit rule to disallow direct access to AMP_CONFIG.#6800

Merged
lannka merged 3 commits intoampproject:masterfrom
lannka:no-AMP-CONFIG
Dec 29, 2016
Merged

Add presubmit rule to disallow direct access to AMP_CONFIG.#6800
lannka merged 3 commits intoampproject:masterfrom
lannka:no-AMP-CONFIG

Conversation

@lannka
Copy link
Copy Markdown
Contributor

@lannka lannka commented Dec 22, 2016

No description provided.

expect(postMessageStub).to.be.calledWith(
serializeMessage('request-type', 'sentinel-123'));
expect(postMessageStub).to.be.calledWith(serializeMessage(
'request-type', 'sentinel-123', {}, '$internalRuntimeVersion$'));
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are the changes in this file related to the PR?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes. the change in 3p/iframe-messaging-client.js broke this test.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I see -- mode#getRtvVersion returns a different value in local dev.

@lannka lannka merged commit cc4f9d4 into ampproject:master Dec 29, 2016
@lannka lannka deleted the no-AMP-CONFIG branch December 29, 2016 19:30
torch2424 pushed a commit to torch2424/amphtml that referenced this pull request Jan 3, 2017
…ct#6800)

* Add presubmit rule to disallow direct access to AMP_CONFIG.

* Fix travis

* Fix test
jridgewell pushed a commit to jridgewell/amphtml that referenced this pull request Jan 31, 2017
…ct#6800)

* Add presubmit rule to disallow direct access to AMP_CONFIG.

* Fix travis

* Fix test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants