Revision cf39c87ae4712892c3da1238e672dba932996ae5 authored by Maja Frydrychowicz on 11 April 2018, 09:34:00 UTC, committed by moz-wptsync-bot on 11 April 2018, 13:24:57 UTC
bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1432105
gecko-commit: f6b8d9c6cbfa3b4a1b0437cee337ff636b3cfcbe
gecko-integration-branch: central
gecko-reviewers: whimboo
1 parent 7967c43
Raw File
constants.js
function testConstants(objects, constants, msg) {
  objects.forEach(function(arr) {
    var o = arr[0], desc = arr[1];
    test(function() {
      constants.forEach(function(d) {
        assert_true(d[0] in o, "Object " + o + " doesn't have " + d[0])
        assert_equals(o[d[0]], d[1], "Object " + o + " value for " + d[0] + " is wrong")
      })
    }, "Constants for " + msg + " on " + desc + ".")
  })
}
back to top