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

Unified Diff: chrome/test/data/extensions/api_test/content_scripts/duplicate_script_injection/test.js

Issue 2116613002: Prevent duplicate content script injection defined in manifest.json (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor followup fix to patch 5 Created 4 years, 5 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/extensions/api_test/content_scripts/duplicate_script_injection/test.js
diff --git a/ios/web/shell/test/shell_test.mm b/chrome/test/data/extensions/api_test/content_scripts/duplicate_script_injection/test.js
similarity index 54%
copy from ios/web/shell/test/shell_test.mm
copy to chrome/test/data/extensions/api_test/content_scripts/duplicate_script_injection/test.js
index 5b4cddc172c1c4cafc6884d64c1f2cf5e1514915..d342bc0011b7bd470c3b81e54017f00e80c3219d 100644
--- a/ios/web/shell/test/shell_test.mm
+++ b/chrome/test/data/extensions/api_test/content_scripts/duplicate_script_injection/test.js
@@ -2,11 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#import <UIKit/UIKit.h>
-#import <XCTest/XCTest.h>
+var el = document.createElement('div');
+el.className = 'test-duplicate-script-injection';
+document.querySelector('body').appendChild(el);
-@interface EmptyFile : NSObject
-@end
-@implementation EmptyFile
-@end

Powered by Google App Engine
This is Rietveld 408576698