summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/ajax/prototype/test/unit/fixtures/hash.js
blob: be5ccfa7d97ddca5bda93a29e740b4ff1348b814 (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
var Fixtures = {
  one: { a: 'A#' },
  
  many: {
    a: 'A',
    b: 'B',
    c: 'C',
    d: 'D#'
  },

  functions: {
    quad: function(n) { return n*n },
    plus: function(n) { return n+n }
  },
  
  multiple:         { color: $w('r g b') },
  multiple_nil:     { color: ['r', null, 'g', undefined, 0] },
  multiple_all_nil: { color: [null, undefined] },
  multiple_empty:   { color: [] },
  multiple_special: { 'stuff[]': $w('$ a ;') },

  value_undefined:  { a:"b", c:undefined },
  value_null:       { a:"b", c:null },
  value_zero:       { a:"b", c:0 }
};