aboutsummaryrefslogtreecommitdiffstats
path: root/test_harnesses
diff options
context:
space:
mode:
authorJez Ng2012-10-20 23:17:30 -0400
committerJez Ng2012-10-20 23:17:45 -0400
commitea73be17468b1bd02171c82e1fb21b1bc16ccd0e (patch)
tree223e4a3b56a410f599e19f81b38752ded86d44c6 /test_harnesses
parent2ed217b43663a553c78fa08a8a10152a43e93cf5 (diff)
downloadvimium-ea73be17468b1bd02171c82e1fb21b1bc16ccd0e.tar.bz2
Refactor handlerStack. Closes #657.
Previously, handlerStack was designed only for removal of the handler right at the top of the stack. However, some handlers sought to remove themselves when they were not at the top of the stack, creating confusion. The new handlerStack ensures that such removal can always be done safely.
Diffstat (limited to 'test_harnesses')
-rw-r--r--test_harnesses/vomnibar.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/test_harnesses/vomnibar.html b/test_harnesses/vomnibar.html
index af1d0a19..f9528548 100644
--- a/test_harnesses/vomnibar.html
+++ b/test_harnesses/vomnibar.html
@@ -15,7 +15,7 @@
<link rel="stylesheet" type="text/css" href="../vimium.css" />
<script>
function setup() {
- window.handlerStack = [];
+ window.handlerStack = new HandlerStack();
// This itemHtml was obtained just by copying and pasting what was generated when using it in practice.
var itemHtml = '<span class="source">history</span> http://<span class="fuzzyMatch">n</span><span class="fuzzyMatch">i</span><span class="fuzzyMatch">n</span><span class="fuzzyMatch">j</span><span class="fuzzyMatch">a</span>words.com/info/about <span class="title">Ninjawords - a really fast dictionary</span>';
var results = [{ html: itemHtml }, { html: itemHtml }];