This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This scripts tests a list of domains whether they blocked by proxy or by ISP | |
// the tests relies on image object loading and its native events. | |
// The domains are queued in FIFO and tested one by one until the non-blocked domain found. | |
// | |
// usage: | |
// tester.validateDomains(['//domain1.com', '//domain2.com'], '/favicon.ico') | |
// .done(function (domain) { | |
// // one of the domains is OK | |
// }) | |
// .fail(function () { |
NewerOlder