OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 | 5 |
6 // NOTE: If you modify this file, you also have to change its hash in | |
7 // local_ntp.html and in LocalNtpSource::GetContentSecurityPolicyScriptSrc. | |
Marc Treib
2017/04/07 16:46:15
This is somewhat inconvenient. The alternative wou
sfiera
2017/04/10 08:53:21
Is there a test that will fail straightforwardly i
Marc Treib
2017/04/10 10:11:18
Yup, that's what the newly added LocalNTPSmokeTest
sfiera
2017/04/10 10:28:53
What does a failure look like? I would hope for so
Marc Treib
2017/04/10 11:44:03
"Failed to find a valid digest in the 'integrity'
sfiera
2017/04/10 12:08:34
To be sure, the printed value is the actual value,
Marc Treib
2017/04/10 12:16:18
It's the value you have to paste in to make things
| |
8 | |
9 | |
6 /** | 10 /** |
7 * @fileoverview The local InstantExtended NTP. | 11 * @fileoverview The local InstantExtended NTP. |
8 */ | 12 */ |
9 | 13 |
10 | 14 |
11 /** | 15 /** |
12 * Controls rendering the new tab page for InstantExtended. | 16 * Controls rendering the new tab page for InstantExtended. |
13 * @return {Object} A limited interface for testing the local NTP. | 17 * @return {Object} A limited interface for testing the local NTP. |
14 */ | 18 */ |
15 function LocalNTP() { | 19 function LocalNTP() { |
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
672 return { | 676 return { |
673 init: init, // Exposed for testing. | 677 init: init, // Exposed for testing. |
674 listen: listen | 678 listen: listen |
675 }; | 679 }; |
676 | 680 |
677 } | 681 } |
678 | 682 |
679 if (!window.localNTPUnitTest) { | 683 if (!window.localNTPUnitTest) { |
680 LocalNTP().listen(); | 684 LocalNTP().listen(); |
681 } | 685 } |
OLD | NEW |