summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/general/generateCss.sjs
blob: d6b4348aa3730902d4cf5a40e860339f06fcd2bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
function handleRequest(request, response) {
  response.setHeader("Content-Type", "text/css", false);
  response.write(gResponses[request.queryString]);
}

let gResponses = {
  // 1
  A: "@import 'generateCss.sjs?B';",
  B: "",

  // 2
  C: "@import 'generateCss.sjs?D';",
  D: "",

  // 3
  E: "@import 'generateCss.sjs?F';",
  F: "",

  // 4
  G: "@import 'generateCss.sjs?H'; @import 'http://example.org/tests/dom/tests/mochitest/general/generateCss.sjs?K';",
  H: "@import 'http://example.com/tests/dom/tests/mochitest/general/generateCss.sjs?I';",
  I: "@import 'generateCss.sjs?J",
  J: "",
  K: "@import 'generateCss.sjs?L';",
  L: "@import 'generateCss.sjs?M",
  M: "",

  // 5
  N: ".c1 { background-image: -moz-image-rect(url('/image/test/mochitest/blue.png'), 0, 0, 200, 200);}",

  // 6
  O: ".c2 { background-image: url('/image/test/mochitest/red.png');}",

  // 7
  P: "@font-face { font-family: Ahem; src: url('/tests/dom/base/test/Ahem.ttf'); } .c3 { font-family: Ahem; font-size: 20px; }",

  // 8
  Q: ".c4 { cursor:  url('/image/test/mochitest/over.png') 2 2, auto; } ",

  // 9
  R: "#image { mask: url('/tests/dom/base/test/file_use_counter_svg_fill_pattern_data.svg'); }",
};