11cb0ef41Sopenharmony_ci// The time values returned when calling the now method MUST be monotonically increasing and not subject to system clock adjustments or system clock skew.
21cb0ef41Sopenharmony_citest(function() {
31cb0ef41Sopenharmony_ci  assert_true(self.performance.now() > 0, "self.performance.now() returns positive numbers");
41cb0ef41Sopenharmony_ci}, "self.performance.now() returns a positive number");
51cb0ef41Sopenharmony_ci
61cb0ef41Sopenharmony_ci// The difference between any two chronologically recorded time values returned from the now method MUST never be negative.
71cb0ef41Sopenharmony_citest(function() {
81cb0ef41Sopenharmony_ci    var now1 = self.performance.now();
91cb0ef41Sopenharmony_ci    var now2 = self.performance.now();
101cb0ef41Sopenharmony_ci    assert_true((now2-now1) >= 0, "self.performance.now() difference is not negative");
111cb0ef41Sopenharmony_ci  },
121cb0ef41Sopenharmony_ci  "self.performance.now() difference is not negative"
131cb0ef41Sopenharmony_ci);
14