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

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: Fixed performance memory tests and addressed review comments. 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..bc5da72cdc94876191c45280c77329b7de45f0b3 100644
--- a/LayoutTests/fast/js/script-tests/delete-syntax.js
+++ b/LayoutTests/fast/js/script-tests/delete-syntax.js
@@ -73,7 +73,8 @@ 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 = getAllPropertyNames(navigator);
var expectedPropertyNames = [
"appName",
"appVersion",

Powered by Google App Engine
This is Rietveld 408576698