diff options
| author | Stephen Blott | 2015-04-29 12:15:59 +0100 | 
|---|---|---|
| committer | Stephen Blott | 2015-04-29 12:16:16 +0100 | 
| commit | 561a63f31e387c6383a2e62558a44df7ab2918f4 (patch) | |
| tree | 38656860b42d3c1af6a54cbdac8dc65f961852cb | |
| parent | 7917647ccad6712118b08cd86e3b4a6dda763ae3 (diff) | |
| download | vimium-561a63f31e387c6383a2e62558a44df7ab2918f4.tar.bz2 | |
Fix text matching/exclusion; repair tests (again).
We should also take a look at these tests and the assumptions they're
making.  They're difficult to follow as is.
| -rw-r--r-- | tests/dom_tests/dom_tests.coffee | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/tests/dom_tests/dom_tests.coffee b/tests/dom_tests/dom_tests.coffee index 7bc50c72..8c2b73c3 100644 --- a/tests/dom_tests/dom_tests.coffee +++ b/tests/dom_tests/dom_tests.coffee @@ -156,6 +156,9 @@ context "Alphabetical link hints",      assert.equal "", hintMarkers[0].style.display  context "Filtered link hints", +  # Note.  In all of these tests, the order of the elements returned by getHintMarkers() may be different from +  # the order they are listed in the test HTML content.  This is because LinkHints.activateMode() sorts the +  # elements.    setup ->      stub settings.values, "filterLinkHints", true @@ -205,8 +208,8 @@ context "Filtered link hints",      should "label the images", ->        hintMarkers = getHintMarkers()        assert.equal "1: alt text", hintMarkers[0].textContent.toLowerCase() -      assert.equal "2: alt text", hintMarkers[1].textContent.toLowerCase() -      assert.equal "3: some title", hintMarkers[2].textContent.toLowerCase() +      assert.equal "2: some title", hintMarkers[1].textContent.toLowerCase() +      assert.equal "3: alt text", hintMarkers[2].textContent.toLowerCase()        assert.equal "4", hintMarkers[3].textContent.toLowerCase()    context "Input hints", | 
