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

Unified Diff: chrome/test/data/extensions/api_test/messaging/externally_connectable/sites/assertions.js

Issue 1055673002: [Extensions API] Remove inline enums (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/extensions/api_test/messaging/externally_connectable/sites/assertions.js
diff --git a/chrome/test/data/extensions/api_test/messaging/externally_connectable/sites/assertions.js b/chrome/test/data/extensions/api_test/messaging/externally_connectable/sites/assertions.js
index fb46498773f01c97d6fa864dcd7424d71e9274e4..e8221c69e2dac124236e93a0e80c2d863b41667b 100644
--- a/chrome/test/data/extensions/api_test/messaging/externally_connectable/sites/assertions.js
+++ b/chrome/test/data/extensions/api_test/messaging/externally_connectable/sites/assertions.js
@@ -23,7 +23,7 @@ var builtinTypes = [
function clobber(obj, name, qualifiedName) {
// Clobbering constructors would break everything.
- // Clobbering toString is annoying.
+ // Clobbering toString or substr is annoying.
// Clobbering __proto__ breaks in ways that grep can't find.
// Clobbering function name will break because
// SafeBuiltins does not support getters yet. See crbug.com/463526.
@@ -31,6 +31,8 @@ function clobber(obj, name, qualifiedName) {
// Clobbering Object.valueOf breaks v8.
if (name == 'constructor' ||
name == 'toString' ||
+ name == 'substr' ||
Devlin 2015/04/03 00:00:56 Without these, we hit String.substr and Object.has
Devlin 2015/04/03 19:38:50 Resolved.
+ name == 'hasOwnProperty' ||
name == '__proto__' ||
name == 'name' && typeof obj == 'function' ||
qualifiedName == 'Function.call' ||

Powered by Google App Engine
This is Rietveld 408576698