[Pkg-mozext-commits] [firebug] 46/82: Update the FBTest
David Prévot
taffit at moszumanska.debian.org
Mon Mar 31 22:45:39 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to tag fbtest-1.11.2
in repository firebug.
commit d2965c34142680a9e7138eaa3b8eb3f476beae2a
Author: Simon Lindholm <simon.lindholm10 at gmail.com>
Date: Wed Jan 2 21:13:22 2013 +0100
Update the FBTest
---
tests/content/commandLine/5873/issue5873.html | 10 ++++++++++
tests/content/commandLine/5873/issue5873.js | 19 +++++++++++++++++--
2 files changed, 27 insertions(+), 2 deletions(-)
diff --git a/tests/content/commandLine/5873/issue5873.html b/tests/content/commandLine/5873/issue5873.html
index 0c7614e..789a39f 100644
--- a/tests/content/commandLine/5873/issue5873.html
+++ b/tests/content/commandLine/5873/issue5873.html
@@ -92,6 +92,16 @@ window.emptyObject = {};
var oth = window.otherFunc;
})();
+(function(a)
+{
+ (function()
+ {
+ var b = 2;
+ window.innerA = function() { return a; };
+ window.innerB = function() { return b; };
+ })();
+})(1);
+
window.scopelessFunc = function() {};
window.scopelessFunc.prop = window.func;
</script>
diff --git a/tests/content/commandLine/5873/issue5873.js b/tests/content/commandLine/5873/issue5873.js
index efcf8a0..35717c3 100644
--- a/tests/content/commandLine/5873/issue5873.js
+++ b/tests/content/commandLine/5873/issue5873.js
@@ -231,11 +231,18 @@ function runTest()
taskList.push(FBTest.executeCommandAndVerify, "a.%local.%blah",
"TypeError: can't get scope of non-object", "span", "errorMessage");
+ taskList.push(FBTest.executeCommandAndVerify, "innerA.%b",
+ "2", "pre", "objectBox-number");
+ taskList.push(FBTest.executeCommandAndVerify, "innerB.%a",
+ "1", "pre", "objectBox-number");
+
// Test setting
taskList.push(FBTest.executeCommandAndVerify, "a.%nonExistent = 1",
- "Error: can't create new closure variables", "span", "errorMessage");
+ "Error: can't create new closure variable", "span", "errorMessage");
taskList.push(FBTest.executeCommandAndVerify, "a.%unused = 1",
- "1", "pre", "objectBox-number");
+ "Error: can't set optimized-away closure variable", "span", "errorMessage");
+ taskList.push(FBTest.executeCommandAndVerify, "delete a.%unused",
+ "Error: can't delete closure variable", "span", "errorMessage");
taskList.push(FBTest.executeCommandAndVerify, "++a.%local",
"6", "pre", "objectBox-number");
@@ -248,6 +255,14 @@ function runTest()
taskList.push(FBTest.executeCommandAndVerify, "a.%local",
"6", "pre", "objectBox-number");
+ // Test that error sources are faked
+ taskList.push(FBTest.executeCommandAndVerify, "innerA.%a()",
+ "TypeError: <get closure>(...).a is not a function", "span", "errorMessage");
+ taskList.push(FBTest.executeCommandAndVerify, "innerA.%a()",
+ "innerA.%a()", "pre", "errorSourceCode");
+ taskList.push(FBTest.executeCommandAndVerify, "a.%nonExistent = 1",
+ "a.%nonExistent = 1", "pre", "errorSourceCode");
+
// Test object->function heuristics:
// * already a function
taskList.push(FBTest.executeCommandAndVerify, "func.%priv",
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firebug.git
More information about the Pkg-mozext-commits
mailing list