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

Unified Diff: chrome/test/data/webui/extensions/extension_load_error_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
« no previous file with comments | « chrome/test/data/webui/extensions/extension_code_section_test.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/extensions/extension_load_error_test.js
diff --git a/chrome/test/data/webui/extensions/extension_load_error_test.js b/chrome/test/data/webui/extensions/extension_load_error_test.js
index 3707617d2064affce7aa5de150ee6900c6f38ff0..45a052b0ed3af57a89955488517f78ff8aabfb42 100644
--- a/chrome/test/data/webui/extensions/extension_load_error_test.js
+++ b/chrome/test/data/webui/extensions/extension_load_error_test.js
@@ -7,6 +7,7 @@ cr.define('extension_load_error_tests', function() {
/** @enum {string} */
var TestNames = {
Interaction: 'Interaction',
+ CodeSection: 'Code Section',
};
/**
@@ -58,6 +59,22 @@ cr.define('extension_load_error_tests', function() {
MockInteractions.tap(loadError.$$('#dismiss'));
expectFalse(isDialogVisible());
});
+
+ test(assert(TestNames.CodeSection), function() {
+ expectTrue(loadError.$.code.isEmpty());
+ var loadErrorProperties = {
+ error: 'Some error',
+ path: '/some/path',
+ source: {
+ beforeHighlight: 'before',
+ highlight: 'highlight',
+ afterHighlight: 'after',
+ },
+ };
+
+ loadError.set('loadError', loadErrorProperties);
+ expectFalse(loadError.$.code.isEmpty());
+ });
});
}
« no previous file with comments | « chrome/test/data/webui/extensions/extension_code_section_test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698