   $sniffer         = null
   changeInputValue = null
 
+  getMenuText = ->
+    item = document.querySelector(".mac-menu-item")
+
+    return item.innerText or item.textContent
+
   beforeEach module("Mac")
   beforeEach module("template/autocomplete.html")
   beforeEach module("template/menu.html")

      $rootScope.$digest()

      changeInputValue element, "f"
      expect(document.querySelector(".mac-menu-item").innerText).toBe "foo"

    it "should use a url string and work exactly like mac-autocomplete-url", ->
      $httpBackend.when("GET", "/api/autocomplete?q=f").respond({data})

      changeInputValue element, "fo"
      $rootScope.$digest()

      expect(getMenuText()).toBe "foo"

    it "should use local label, value object", ->
      $rootScope.source = [
