From 43a97878ce14b72f0981164f87f2e35e14151312 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:22:09 +0200 Subject: Adding upstream version 110.0.1. Signed-off-by: Daniel Baumann --- .../modules/tests/browser/browser_test_assert.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 testing/modules/tests/browser/browser_test_assert.js (limited to 'testing/modules/tests/browser/browser_test_assert.js') diff --git a/testing/modules/tests/browser/browser_test_assert.js b/testing/modules/tests/browser/browser_test_assert.js new file mode 100644 index 0000000000..ea0823e60d --- /dev/null +++ b/testing/modules/tests/browser/browser_test_assert.js @@ -0,0 +1,21 @@ +/* Any copyright is dedicated to the Public Domain. +http://creativecommons.org/publicdomain/zero/1.0/ */ + +function test() { + export_assertions(); + + ok(true, "pass ok"); + is(true, true, "pass is"); + isnot(false, true, "pass isnot"); + todo(false, "pass todo"); + todo_is(false, true, "pass todo_is"); + todo_isnot(true, true, "pass todo_isnot"); + info("info message"); + + var func = is; + func(1, 1, "pass indirect is"); + + stringMatches("hello world", /llo\s/); + stringMatches("hello world", "llo\\s"); + stringContains("hello world", "llo"); +} -- cgit v1.2.3