Fix LicenseRequest tests by correcting AJAX mock.

The AJAX mock calls onload() and onreadystatechange() in the wrong
order.  This broke the tests when clock sync via onreadystatechange
was added.

Change-Id: I3f55698b6928d5434d1c3edf3bf7cd3b4bdb7eb3
This commit is contained in:
Joey Parrish
2015-03-22 22:18:43 -07:00
committed by Gerrit Code Review
parent a7e2fe5d81
commit 67deb5b7df
+1 -1
View File
@@ -259,8 +259,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
this.responseHeaders = response.responseHeaders ||
{"Content-Type": response.contentType || "application/json" };
this.onload();
this.onreadystatechange();
this.onload();
},
responseTimeout: function() {