From 9e3258611c2080a48367c9c69f29cd1970746281 Mon Sep 17 00:00:00 2001 From: Simon Lindholm Date: Wed, 31 Oct 2012 19:55:37 +0100 Subject: [PATCH] FBTest for issue 6032 (Completion of primitive includes the wrong scope's prototype) http://code.google.com/p/fbug/issues/detail?id=6032 --- tests/content/console/completion/959/issue959.html | 2 ++ tests/content/console/completion/959/issue959.js | 1 + 2 files changed, 3 insertions(+) diff --git a/tests/content/console/completion/959/issue959.html b/tests/content/console/completion/959/issue959.html index 758ceec0ed..63288318cc 100644 --- a/tests/content/console/completion/959/issue959.html +++ b/tests/content/console/completion/959/issue959.html @@ -15,6 +15,8 @@ aa2: { value: 1 } }); obj3 = Object.create({}); +Boolean.prototype.hello = function() { alert("Hi!"); }; +Boolean.prototype.hello2 = function() { alert("Yo"); }; diff --git a/tests/content/console/completion/959/issue959.js b/tests/content/console/completion/959/issue959.js index 4c2f190b35..617a351939 100644 --- a/tests/content/console/completion/959/issue959.js +++ b/tests/content/console/completion/959/issue959.js @@ -64,6 +64,7 @@ function runTest() tasks.push(testWithPopup, "obj2.", "aa1", true); tasks.push(testWithPopup, "obj3.", "", false); tasks.push(testWithPopup, "obj3.t", "oString", false); + tasks.push(testWithPopup, "false.he", "llo", true); tasks.push(testHidden, "String.prototype.toLocaleU"); tasks.push(testHidden, "''.toLocaleU");