aboutsummaryrefslogtreecommitdiffstats
path: root/test/testabilityPatch.js
diff options
context:
space:
mode:
authorIgor Minar2012-05-02 21:59:55 -0700
committerIgor Minar2012-05-03 10:07:30 -0700
commit9cba23a58847b8a856785a026aa95980cc690115 (patch)
treed167e550a051037b527b8982c415cb4ea60c2bae /test/testabilityPatch.js
parent705f4bbf115d2408e33b25f56edbf1f383aabb82 (diff)
downloadangular.js-9cba23a58847b8a856785a026aa95980cc690115.tar.bz2
chore(trace): add helper method trace
use it as trace('label') to dump the stack during debugging
Diffstat (limited to 'test/testabilityPatch.js')
-rw-r--r--test/testabilityPatch.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js
index a60bc1df..1272fb49 100644
--- a/test/testabilityPatch.js
+++ b/test/testabilityPatch.js
@@ -232,3 +232,7 @@ function provideLog($provide) {
function pending() {
dump('PENDING');
};
+
+function trace(name) {
+ dump(new Error(name).stack);
+}