summaryrefslogtreecommitdiffstats
path: root/dom/security/test/contentverifier/browser_verify_content_about_newtab2.js
blob: a35ff666042135d67504099054ffdc1db35128c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

const TESTS = [
  // { newtab (aboutURI) or regular load (url) : url,
  //   testStrings : expected strings in the loaded page }
  { "aboutURI" : URI_GOOD, "testStrings" : [GOOD_ABOUT_STRING] },
  { "aboutURI" : URI_ERROR_HEADER, "testStrings" : [ABOUT_BLANK] },
  { "aboutURI" : URI_KEYERROR_HEADER, "testStrings" : [ABOUT_BLANK] },
  { "aboutURI" : URI_SIGERROR_HEADER, "testStrings" : [ABOUT_BLANK] },
  { "aboutURI" : URI_NO_HEADER, "testStrings" : [ABOUT_BLANK] },
  { "aboutURI" : URI_BAD_SIG, "testStrings" : [ABOUT_BLANK] },
  { "aboutURI" : URI_BROKEN_SIG, "testStrings" : [ABOUT_BLANK] },
  { "aboutURI" : URI_BAD_X5U, "testStrings" : [ABOUT_BLANK] },
  { "aboutURI" : URI_HTTP_X5U, "testStrings" : [ABOUT_BLANK] },
  { "aboutURI" : URI_BAD_FILE, "testStrings" : [ABOUT_BLANK] },
  { "aboutURI" : URI_BAD_ALL, "testStrings" : [ABOUT_BLANK] },
  { "url" : URI_CLEANUP, "testStrings" : [CLEANUP_DONE] },
];

add_task(runTests);