diff options
| author | Jez Ng | 2012-09-04 14:57:22 -0400 |
|---|---|---|
| committer | Jez Ng | 2012-09-04 14:57:22 -0400 |
| commit | 525276bde9b99d05b133f96f21e1ac187c068bb6 (patch) | |
| tree | c3246ec45e840078aa49277e60f9e318844dd2d5 | |
| parent | 02a00efb26f8a8590bd44ccae7f47ae4704cc56c (diff) | |
| download | vimium-525276bde9b99d05b133f96f21e1ac187c068bb6.tar.bz2 | |
More misc cleanups.
| -rw-r--r-- | background_scripts/main.coffee | 6 | ||||
| -rw-r--r-- | test_harnesses/automated/automated.coffee | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index 5c10b9ae..707febc9 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -251,13 +251,13 @@ BackgroundCommands = nextFrame: (count) -> chrome.tabs.getSelected(null, (tab) -> frames = framesForTab[tab.id].frames - curr_index = getCurrFrameIndex(frames) + currIndex = getCurrFrameIndex(frames) # TODO: Skip the "top" frame (which doesn't actually have a <frame> tag), # since it exists only to contain the other frames. - new_index = (curr_index + count) % frames.length + newIndex = (currIndex + count) % frames.length - chrome.tabs.sendRequest(tab.id, { name: "focusFrame", frameId: frames[new_index].id, highlight: true })) + chrome.tabs.sendRequest(tab.id, { name: "focusFrame", frameId: frames[newIndex].id, highlight: true })) # Selects a tab before or after the currently selected tab. # - direction: "next", "previous", "first" or "last". diff --git a/test_harnesses/automated/automated.coffee b/test_harnesses/automated/automated.coffee index c6f7639a..b5e5af35 100644 --- a/test_harnesses/automated/automated.coffee +++ b/test_harnesses/automated/automated.coffee @@ -186,10 +186,10 @@ Tests.outputMethod = (args...) -> document.getElementById("output-div").innerHTML += "<div class='output-section'>" + newOutput + "</div>" console.log.apply console, args +# ensure the extension has time to load before commencing the tests document.addEventListener "DOMContentLoaded", -> setTimeout Tests.run, 200 -# ensure the extension has time to load before commencing the tests createLinks = (n) -> for i in [0...n] by 1 link = document.createElement("a") |
