JQVMap Test Suite

QUnit 1.18.0; Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)

Tests completed in 362 milliseconds.
58 assertions of 58 passed, 0 failed.

  1. jqvmap-base: Constructor Only (1)Rerun23 ms
    1. vectorMap() is instance of JQVMap@ 22 ms
  2. jqvmap-base: Accepts Config Options (1)Rerun10 ms
    1. vectorMap() is instance of JQVMap@ 9 ms
  3. jqvmap-config-validation: Test Config Options (30)Rerun133 ms
    1. vectorMap({ map: "world_en" }) set correctly@ 131 ms
    2. vectorMap({ backgroundColor: "#ffffff" }) set correctly@ 131 ms
    3. vectorMap({ borderColor: "#ffffff" }) set correctly@ 131 ms
    4. vectorMap({ borderOpacity: 0.25 }) set correctly@ 132 ms
    5. vectorMap({ borderWidth: 1 }) set correctly@ 132 ms
    6. vectorMap({ color: "#000000" }) set correctly@ 132 ms
    7. vectorMap({ colors: { us: "#ff0000" } }) set correctly@ 132 ms
    8. vectorMap({ enableZoom: false }) set correctly@ 132 ms
    9. vectorMap({ hoverColor: "#0000FF" }) set correctly@ 132 ms
    10. vectorMap({ hoverColors: { us: "#ff0000" } }) set correctly@ 132 ms
    11. vectorMap({ hoverOpacity: 0.7 }) set correctly@ 132 ms
    12. vectorMap({ normalizeFunction: "polynomial" }) set correctly@ 132 ms
    13. vectorMap({ scaleColors: ["#b6d6ff", "#005ace"] }) first color red set correctly@ 132 ms
    14. vectorMap({ scaleColors: ["#b6d6ff", "#005ace"] }) first color green set correctly@ 132 ms
    15. vectorMap({ scaleColors: ["#b6d6ff", "#005ace"] }) first color blue set correctly@ 132 ms
    16. vectorMap({ scaleColors: ["#b6d6ff", "#005ace"] }) second color red set correctly@ 132 ms
    17. vectorMap({ scaleColors: ["#b6d6ff", "#005ace"] }) second color green set correctly@ 132 ms
    18. vectorMap({ scaleColors: ["#b6d6ff", "#005ace"] }) second color blue set correctly@ 132 ms
    19. vectorMap({ selectedColor: "#333333" }) US set correctly@ 132 ms
    20. vectorMap({ selectedRegions: ["us", "mx"] }) US set correctly@ 132 ms
    21. vectorMap({ selectedRegions: ["us", "mx"] }) MX set correctly@ 132 ms
    22. vectorMap({ multiSelectRegion: false }) set correctly@ 132 ms
    23. vectorMap({ showTooltip: false }) set correctly@ 132 ms
    24. vectorMap({ showLabels: true }) set correctly@ 132 ms
    25. vectorMap({ onLabelShow: function(){} }) set correctly@ 132 ms
    26. vectorMap({ onRegionOver: function(){} }) set correctly@ 132 ms
    27. vectorMap({ onRegionOut: function(){} }) set correctly@ 132 ms
    28. vectorMap({ onRegionClick: function(){} }) set correctly@ 132 ms
    29. vectorMap({ pins: { us: "America" } }) set correctly@ 132 ms
    30. vectorMap({ pinMode: "content" }) set correctly@ 132 ms
  4. jqvmap-config-validation: Test selectedRegions actually set in canvas (2)Rerun10 ms
    1. vectorMap({ selectedColor: "#333333" }) set correctly for US@ 10 ms
    2. vectorMap({ selectedColor: "#333333" }) set correctly for MX@ 10 ms
  5. jqvmap-config-validation: Test colors actually set in canvas (2)Rerun9 ms
    1. vectorMap({ colors: { us: "#0000FF", mx: "#00FF00" } }) set correctly for US@ 8 ms
    2. vectorMap({ colors: { us: "#0000FF", mx: "#00FF00" } }) set correctly for MX@ 8 ms
  6. jqvmap-config-validation: Test labels show up (1)Rerun101 ms
    1. vectorMap({ showLabels: true }) set correctly and label showing@ 99 ms
  7. jqvmap-event-handling: onLoad() event handler (2)Rerun10 ms
    1. vectorMap({ onLoad: function(event, map }) fires correctly and returns an event@ 9 ms
    2. vectorMap({ onLoad: function(event, map }) fires correctly and returns map@ 9 ms
  8. jqvmap-event-handling: onLabelShow() event handler (3)Rerun8 ms
    1. vectorMap({ onLabelShow: function(event, label, code){ ... } }) fires correctly and returns an event@ 8 ms
    2. vectorMap({ onLabelShow: function(event, label, code){ ... } }) fires correctly and returns code@ 8 ms
    3. vectorMap({ onLabelShow: function(event, label, code){ ... } }) fires correctly and returns label@ 8 ms
  9. jqvmap-event-handling: onRegionOver() event handler (3)Rerun9 ms
    1. vectorMap({ onRegionOver: function(event, code, region){ ... } }) fires correctly and returns an event@ 9 ms
    2. vectorMap({ onRegionOver: function(event, code, region){ ... } }) fires correctly and returns code@ 9 ms
    3. vectorMap({ onRegionOver: function(event, code, region){ ... } }) fires correctly and returns region@ 9 ms
  10. jqvmap-event-handling: onRegionOut() event handler (3)Rerun8 ms
    1. vectorMap({ onRegionOut: function(event, code, region){ ... } }) fires correctly and returns an event@ 8 ms
    2. vectorMap({ onRegionOut: function(event, code, region){ ... } }) fires correctly and returns code@ 8 ms
    3. vectorMap({ onRegionOut: function(event, code, region){ ... } }) fires correctly and returns region@ 8 ms
  11. jqvmap-event-handling: onRegionClick() event handler (3)Rerun10 ms
    1. vectorMap({ onRegionClick: function(event, code, region){ ... } }) fires correctly and returns an event@ 9 ms
    2. vectorMap({ onRegionClick: function(event, code, region){ ... } }) fires correctly and returns code@ 9 ms
    3. vectorMap({ onRegionClick: function(event, code, region){ ... } }) fires correctly and returns region@ 9 ms
  12. jqvmap-event-handling: onRegionSelect() event handler (3)Rerun8 ms
    1. vectorMap({ onRegionSelect: function(event, code, region){ ... } }) fires correctly and returns an event@ 8 ms
    2. vectorMap({ onRegionSelect: function(event, code, region){ ... } }) fires correctly and returns code@ 8 ms
    3. vectorMap({ onRegionSelect: function(event, code, region){ ... } }) fires correctly and returns region@ 8 ms
  13. jqvmap-event-handling: onRegionDeselect() event handler (3)Rerun8 ms
    1. vectorMap({ onRegionDeselect: function(event, code, region){ ... } }) fires correctly and returns an event@ 8 ms
    2. vectorMap({ onRegionDeselect: function(event, code, region){ ... } }) fires correctly and returns code@ 8 ms
    3. vectorMap({ onRegionDeselect: function(event, code, region){ ... } }) fires correctly and returns region@ 8 ms
  14. jqvmap-error-handling: Invalid Map Name (1)Rerun0 ms
    1. Correctly threw invalid map error@ 0 ms