This file is indexed.

/usr/lib/python2.7/dist-packages/horizon/static/horizon/tests/modals.js is in python-django-horizon 1:2014.1.5-0ubuntu2.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
horizon.addInitFunction(function () {
  module("Modals (horizon.modals.js)");

  test("Modal Creation", function () {
    var modal,
      title = "Test Title",
      body = "<p>Test Body</p>",
      confirm = "Test Confirm";
    modal = horizon.modals.create(title, body, confirm);
    ok(modal, "Verify our modal was created.");

    modal = $("#modal_wrapper .modal");
    modal.modal();
    equal(modal.length, 1, "Verify our modal was added to the DOM.");
    ok(modal.hasClass("in"), "Verify our modal is not hidden.");
    equal(modal.find("h3").text(), title, "Verify the title was added correctly.");
    equal(modal.find(".modal-body").text().trim(), body, "Verify the body was added correctly.");
    equal(modal.find(".modal-footer .btn-primary").text(), confirm, "Verify the footer confirm button was added correctly.");
    modal.find(".modal-footer .cancel").click();
    ok(!modal.hasClass("in"), "Verify our modal is hidden.");
  });
});