From 5194881dec8833fa786e1a2b2c6b219f555bdad1 Mon Sep 17 00:00:00 2001 From: CF Mitrah Date: Wed, 31 Jan 2024 20:19:01 +0530 Subject: [PATCH] Added test case for cfStopwatch tag --- test/tags/Stopwatch.cfc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/tags/Stopwatch.cfc diff --git a/test/tags/Stopwatch.cfc b/test/tags/Stopwatch.cfc new file mode 100644 index 0000000000..603d46457e --- /dev/null +++ b/test/tags/Stopwatch.cfc @@ -0,0 +1,17 @@ +component extends="org.lucee.cfml.test.LuceeTestCase" labels="cfstopwatch" { + function run( testResults, testBox ) { + describe("Testcase for cfstopwatch tag", function() { + it( title="Checking stopwatch", body=function( currentSpec ) { + stopwatch variable="stopwatchVar" { + i = 0; + loop from="1" to="10000" index="j" { + i++; + } + } + + expect(stopwatchVar).toBeNumeric(); + expect(stopwatchVar).toBeTrue(); + }); + }); + } +} \ No newline at end of file