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

Unified Diff: chrome/test/data/webui/extensions/extension_code_section_test.js

Issue 2769293002: [MD Extensions] Include the manifest code snippet in load errors (Closed)
Patch Set: . Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/webui/extensions/extension_code_section_test.js
diff --git a/chrome/test/data/webui/extensions/extension_code_section_test.js b/chrome/test/data/webui/extensions/extension_code_section_test.js
index db955449e8f5847b35cc81c17c618bca1368b17d..79b28e2c8e7869d406c6babd1c9dde60894c1c35 100644
--- a/chrome/test/data/webui/extensions/extension_code_section_test.js
+++ b/chrome/test/data/webui/extensions/extension_code_section_test.js
@@ -22,7 +22,7 @@ cr.define('extension_code_section_tests', function() {
/** @type {extensions.CodeSection} */
var codeSection;
- var noCodeError = 'No code here';
+ var couldNotDisplayCode = 'No code here';
suiteSetup(function() {
return PolymerTest.importHtml('chrome://extensions/code_section.html');
@@ -32,7 +32,7 @@ cr.define('extension_code_section_tests', function() {
setup(function() {
PolymerTest.clearBody();
codeSection = new extensions.CodeSection();
- codeSection.noCodeError = noCodeError;
+ codeSection.couldNotDisplayCode = couldNotDisplayCode;
document.body.appendChild(codeSection);
});
@@ -42,7 +42,7 @@ cr.define('extension_code_section_tests', function() {
var testIsVisible =
extension_test_util.isVisible.bind(null, codeSection);
expectFalse(!!codeSection.code);
- expectTrue(codeSection.isMainHidden_());
+ expectTrue(codeSection.isEmpty());
expectTrue(codeSection.$$('#main').hidden);
expectFalse(testIsVisible('#main'));
expectTrue(testIsVisible('#no-code'));

Powered by Google App Engine
This is Rietveld 408576698