Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: test/JsEngine.cpp

Issue 10184021: Some refactoring of global JavaScript objects (Closed)
Patch Set: Unbitrotted patch Created April 16, 2013, 3:32 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/GlobalJsObject.cpp ('k') | test/JsValue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/JsEngine.cpp
===================================================================
--- a/test/JsEngine.cpp
+++ b/test/JsEngine.cpp
@@ -120,9 +120,13 @@ TEST(JsEngineTest, ValueCreation)
value = jsEngine.NewValue(12);
ASSERT_TRUE(value->IsNumber());
ASSERT_EQ(12, value->AsInt());
value = jsEngine.NewValue(true);
ASSERT_TRUE(value->IsBool());
ASSERT_TRUE(value->AsBool());
+
+ value = jsEngine.NewObject();
+ ASSERT_TRUE(value->IsObject());
+ ASSERT_EQ(0u, value->GetOwnPropertyNames().size());
}
« no previous file with comments | « test/GlobalJsObject.cpp ('k') | test/JsValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld