<commit_before>"use strict";

var base = require("./base.spec");

describe("error", function () {
  it("handles multiple jqueries", function (done) {
    var url = base.appUrl + "test/func/fixtures/jquery.html";

    base.adapter.client
      .url(url)

      // Check errors
      .getText(".e2e-error").then(function (text) {
        expect(text).to.not.be.ok;
      })

      // Verify error and result callbacks
      .getText(".e2e-google-1-11-3-1-error").then(function (text) {
        expect(text).to.equal("");
      })
      .getText(".e2e-google-1-11-3-1-result").then(function (text) {
        expect(text).to.equal("PASS");
      })

      .getText(".e2e-google-1-11-3-2-error").then(function (text) {
        expect(text).to.equal("");
      })
      .getText(".e2e-google-1-11-3-2-result").then(function (text) {
        expect(text).to.equal("PASS");
      })

      .getText(".e2e-google-1-11-1-1-error").then(function (text) {
        expect(text).to.equal("");
      })
      .getText(".e2e-google-1-11-1-1-result").then(function (text) {
        expect(text).to.equal("PASS");
      })

      .getText(".e2e-google-1-7-2-1-error").then(function (text) {
        expect(text).to.equal("");
      })
      .getText(".e2e-google-1-7-2-1-result").then(function (text) {
        expect(text).to.equal("PASS");
      })

      .getText(".e2e-jquery-1-11-3-2-error").then(function (text) {
        expect(text).to.equal("");
      })
      .getText(".e2e-jquery-1-11-3-2-result").then(function (text) {
        expect(text).to.equal("PASS");
      })

      .getText(".e2e-jquery-1-11-2-1-error").then(function (text) {
        expect(text).to.equal("");
      })
      .getText(".e2e-jquery-1-11-2-1-result").then(function (text) {
        expect(text).to.equal("PASS");
      })

      .getText(".e2e-jquery-1-7-2-1-error").then(function (text) {
        expect(text).to.equal("");
      })
      .getText(".e2e-jquery-1-7-2-1-result").then(function (text) {
        expect(text).to.equal("PASS");
      })

      .getText(".e2e-jquery-1-11-1-1-error").then(function (text) {
        expect(text).to.equal("");
      })
      .getText(".e2e-jquery-1-11-1-1-result").then(function (text) {
        expect(text).to.equal("PASS");
      })

      .getText(".e2e-google-1-11-2-1-error").then(function (text) {
        expect(text).to.equal("");
      })
      .getText(".e2e-google-1-11-2-1-result").then(function (text) {
        expect(text).to.equal("PASS");
      })

      .getText(".e2e-jquery-1-11-3-1-error").then(function (text) {
        expect(text).to.equal("");
      })
      .getText(".e2e-jquery-1-11-3-1-result").then(function (text) {
        expect(text).to.equal("PASS");
      })

      .finally(base.promiseDone(done));
  });
});<commit_msg>Reorder jquery asserts to match load order. /cc @exogen<commit_after>"use strict";

var base = require("./base.spec");

describe("error", function () {
  it("handles multiple jqueries", function (done) {
    var url = base.appUrl + "test/func/fixtures/jquery.html";

    base.adapter.client
      .url(url)

      // Check errors
      .getText(".e2e-error").then(function (text) {
        expect(text).to.not.be.ok;
      })

      // Verify error and result callbacks
      .getText(".e2e-google-1-11-3-1-error").then(function (text) {
        expect(text).to.equal("");
      })
      .getText(".e2e-google-1-11-3-1-result").then(function (text) {
        expect(text).to.equal("PASS");
      })

      .getText(".e2e-jquery-1-11-3-1-error").then(function (text) {
        expect(text).to.equal("");
      })
      .getText(".e2e-jquery-1-11-3-1-result").then(function (text) {
        expect(text).to.equal("PASS");
      })

      .getText(".e2e-google-1-11-2-1-error").then(function (text) {
        expect(text).to.equal("");
      })
      .getText(".e2e-google-1-11-2-1-result").then(function (text) {
        expect(text).to.equal("PASS");
      })

      .getText(".e2e-jquery-1-11-2-1-error").then(function (text) {
        expect(text).to.equal("");
      })
      .getText(".e2e-jquery-1-11-2-1-result").then(function (text) {
        expect(text).to.equal("PASS");
      })

      .getText(".e2e-google-1-7-2-1-error").then(function (text) {
        expect(text).to.equal("");
      })
      .getText(".e2e-google-1-7-2-1-result").then(function (text) {
        expect(text).to.equal("PASS");
      })

      .getText(".e2e-google-1-11-1-1-error").then(function (text) {
        expect(text).to.equal("");
      })
      .getText(".e2e-google-1-11-1-1-result").then(function (text) {
        expect(text).to.equal("PASS");
      })

      .getText(".e2e-jquery-1-11-1-1-error").then(function (text) {
        expect(text).to.equal("");
      })
      .getText(".e2e-jquery-1-11-1-1-result").then(function (text) {
        expect(text).to.equal("PASS");
      })

      .getText(".e2e-jquery-1-7-2-1-error").then(function (text) {
        expect(text).to.equal("");
      })
      .getText(".e2e-jquery-1-7-2-1-result").then(function (text) {
        expect(text).to.equal("PASS");
      })

      .getText(".e2e-google-1-11-3-2-error").then(function (text) {
        expect(text).to.equal("");
      })
      .getText(".e2e-google-1-11-3-2-result").then(function (text) {
        expect(text).to.equal("PASS");
      })

      .getText(".e2e-jquery-1-11-3-2-error").then(function (text) {
        expect(text).to.equal("");
      })
      .getText(".e2e-jquery-1-11-3-2-result").then(function (text) {
        expect(text).to.equal("PASS");
      })


      .finally(base.promiseDone(done));
  });
});
{'fraction_non_alphanumeric': 0.23027375201288244, 'fraction_numerical': 0.04186795491143317, 'mean_word_length': 2.24245939675174, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6118103', 'n_tokens_mistral': 2061, 'n_tokens_neox': 2019, 'n_words': 186}