summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSergio Ahumada <sahumada@blackberry.com>2014-03-03 23:09:03 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-04 10:10:52 +0100
commitae1322df716e9ebdae9fa156c4eeb4fc18d3a191 (patch)
treeae0fdfd1ec152a0d810140cc2623e2b67a234ec3 /tests
parentbfd4c7ae5704af56d7188c35dfe0fa311874a770 (diff)
downloadqtscript-ae1322df716e9ebdae9fa156c4eeb4fc18d3a191.tar.gz
Fix some typos
Change-Id: Idb1e503afa74efe167d68e6fb993f50138546c51 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qscriptengineagent/tst_qscriptengineagent.cpp4
-rw-r--r--tests/benchmarks/script/qscriptclass/tst_qscriptclass.cpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/qscriptengineagent/tst_qscriptengineagent.cpp b/tests/auto/qscriptengineagent/tst_qscriptengineagent.cpp
index e0e7a5b..1097a41 100644
--- a/tests/auto/qscriptengineagent/tst_qscriptengineagent.cpp
+++ b/tests/auto/qscriptengineagent/tst_qscriptengineagent.cpp
@@ -809,7 +809,7 @@ void tst_QScriptEngineAgent::functionEntryAndExit_native2()
delete spy;
}
-/** check behaiviour of native function throwing error*/
+/** check behavior of native function throwing error*/
void tst_QScriptEngineAgent::functionEntryAndExit_nativeThrowing()
{
/* This function was changed from old backend. JSC return more Entrys / Exits, (exactly +1)
@@ -2353,7 +2353,7 @@ void tst_QScriptEngineAgent::hasUncaughtException()
QVERIFY2(spy->isPass(), "At least one of a functionExit event should set hasUncaughtException flag.");
spy->reset();
- // Check catched exception.
+ // Check caught exception.
eng.evaluate("function innerFoo() { throw new Error('ciao') }");
eng.evaluate("function foo() {try { innerFoo() } catch (e) {} }");
scriptValue = QScriptValue(eng.globalObject().property("foo")).call();
diff --git a/tests/benchmarks/script/qscriptclass/tst_qscriptclass.cpp b/tests/benchmarks/script/qscriptclass/tst_qscriptclass.cpp
index 68c598f..bd82afa 100644
--- a/tests/benchmarks/script/qscriptclass/tst_qscriptclass.cpp
+++ b/tests/benchmarks/script/qscriptclass/tst_qscriptclass.cpp
@@ -117,7 +117,7 @@ private:
QScriptString foo;
};
-// Test the overhead of getting a value of QScriptClass accross the Javascript engine
+// Test the overhead of getting a value of QScriptClass across the Javascript engine
void tst_QScriptClass::property()
{
QScriptEngine eng;
@@ -130,7 +130,7 @@ void tst_QScriptClass::property()
}
}
-// Test the overhead of setting a value on QScriptClass accross the Javascript engine
+// Test the overhead of setting a value on QScriptClass across the Javascript engine
void tst_QScriptClass::setProperty()
{
QScriptEngine eng;
@@ -144,7 +144,7 @@ void tst_QScriptClass::setProperty()
}
}
-// Test the time taken to get the propeties flags accross the engine
+// Test the time taken to get the propeties flags across the engine
void tst_QScriptClass::propertyFlags()
{
QScriptEngine eng;