| Index: test/cctest/test-api.cc
|
| diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
|
| index 58756967348f0b832e6b8a87df11d800ba109403..0de72c80454ebc3757719061930376aa721b3afc 100644
|
| --- a/test/cctest/test-api.cc
|
| +++ b/test/cctest/test-api.cc
|
| @@ -99,50 +99,6 @@ void RunWithProfiler(void (*test)()) {
|
| }
|
|
|
|
|
| -static void ExpectString(const char* code, const char* expected) {
|
| - Local<Value> result = CompileRun(code);
|
| - CHECK(result->IsString());
|
| - String::Utf8Value utf8(result);
|
| - CHECK_EQ(expected, *utf8);
|
| -}
|
| -
|
| -
|
| -static void ExpectInt32(const char* code, int expected) {
|
| - Local<Value> result = CompileRun(code);
|
| - CHECK(result->IsInt32());
|
| - CHECK_EQ(expected, result->Int32Value());
|
| -}
|
| -
|
| -
|
| -static void ExpectBoolean(const char* code, bool expected) {
|
| - Local<Value> result = CompileRun(code);
|
| - CHECK(result->IsBoolean());
|
| - CHECK_EQ(expected, result->BooleanValue());
|
| -}
|
| -
|
| -
|
| -static void ExpectTrue(const char* code) {
|
| - ExpectBoolean(code, true);
|
| -}
|
| -
|
| -
|
| -static void ExpectFalse(const char* code) {
|
| - ExpectBoolean(code, false);
|
| -}
|
| -
|
| -
|
| -static void ExpectObject(const char* code, Local<Value> expected) {
|
| - Local<Value> result = CompileRun(code);
|
| - CHECK(result->Equals(expected));
|
| -}
|
| -
|
| -
|
| -static void ExpectUndefined(const char* code) {
|
| - Local<Value> result = CompileRun(code);
|
| - CHECK(result->IsUndefined());
|
| -}
|
| -
|
| -
|
| static int signature_callback_count;
|
| static Local<Value> signature_expected_receiver;
|
| static void IncrementingSignatureCallback(
|
| @@ -451,14 +407,6 @@ THREADED_TEST(Script) {
|
| }
|
|
|
|
|
| -static uint16_t* AsciiToTwoByteString(const char* source) {
|
| - int array_length = i::StrLength(source) + 1;
|
| - uint16_t* converted = i::NewArray<uint16_t>(array_length);
|
| - for (int i = 0; i < array_length; i++) converted[i] = source[i];
|
| - return converted;
|
| -}
|
| -
|
| -
|
| class TestResource: public String::ExternalStringResource {
|
| public:
|
| TestResource(uint16_t* data, int* counter = NULL, bool owning_data = true)
|
|
|