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

Unified Diff: LayoutTests/fast/js/script-tests/delete-syntax.js

Issue 821303006: bindings: Fixes layouttests when moving attributes to prototype chains. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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: LayoutTests/fast/js/script-tests/delete-syntax.js
diff --git a/LayoutTests/fast/js/script-tests/delete-syntax.js b/LayoutTests/fast/js/script-tests/delete-syntax.js
index 54bb0b54990f1977d9dbb9542bf0bf9925cdc72c..303313bb3f67adaa97b10bd682a1974e41ce10df 100644
--- a/LayoutTests/fast/js/script-tests/delete-syntax.js
+++ b/LayoutTests/fast/js/script-tests/delete-syntax.js
@@ -73,7 +73,11 @@ delete Object.prototype.__defineSetter__;
shouldBe("Object.getOwnPropertyNames(Object.prototype).indexOf('__defineSetter__')", "-1");
delete navigator.appCodeName;
-var navigatorPropertyNames = Object.getOwnPropertyNames(navigator);
+delete Navigator.prototype.appCodeName;
+var navigatorPropertyNames = [];
+for (var property in navigator) {
+ navigatorPropertyNames.push(property);
+}
var expectedPropertyNames = [
"appName",
"appVersion",

Powered by Google App Engine
This is Rietveld 408576698