• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// The time values returned when calling the now method MUST be monotonically increasing and not subject to system clock adjustments or system clock skew.
2test(function() {
3  assert_true(self.performance.now() > 0, "self.performance.now() returns positive numbers");
4}, "self.performance.now() returns a positive number");
5
6// The difference between any two chronologically recorded time values returned from the now method MUST never be negative.
7test(function() {
8    var now1 = self.performance.now();
9    var now2 = self.performance.now();
10    assert_true((now2-now1) >= 0, "self.performance.now() difference is not negative");
11  },
12  "self.performance.now() difference is not negative"
13);
14