Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(610)

Unified Diff: test/cctest/test-api.cc

Issue 11035053: Rollback trunk to bleeding_edge revision 12525 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/cctest/test-alloc.cc ('k') | test/cctest/test-debug.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-api.cc
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
index 067d134b18650b44a56b5ddcd2338477da7ea802..7ba9e639ae26b994505959249561dcaa81575a0a 100644
--- a/test/cctest/test-api.cc
+++ b/test/cctest/test-api.cc
@@ -14452,89 +14452,6 @@ TEST(SourceURLInStackTrace) {
}
-v8::Handle<Value> AnalyzeStackOfInlineScriptWithSourceURL(
- const v8::Arguments& args) {
- v8::HandleScope scope;
- v8::Handle<v8::StackTrace> stackTrace =
- v8::StackTrace::CurrentStackTrace(10, v8::StackTrace::kDetailed);
- CHECK_EQ(4, stackTrace->GetFrameCount());
- v8::Handle<v8::String> url = v8_str("url");
- for (int i = 0; i < 3; i++) {
- v8::Handle<v8::String> name =
- stackTrace->GetFrame(i)->GetScriptNameOrSourceURL();
- CHECK(!name.IsEmpty());
- CHECK_EQ(url, name);
- }
- return v8::Undefined();
-}
-
-
-TEST(InlineScriptWithSourceURLInStackTrace) {
- v8::HandleScope scope;
- Local<ObjectTemplate> templ = ObjectTemplate::New();
- templ->Set(v8_str("AnalyzeStackOfInlineScriptWithSourceURL"),
- v8::FunctionTemplate::New(
- AnalyzeStackOfInlineScriptWithSourceURL));
- LocalContext context(0, templ);
-
- const char *source =
- "function outer() {\n"
- "function bar() {\n"
- " AnalyzeStackOfInlineScriptWithSourceURL();\n"
- "}\n"
- "function foo() {\n"
- "\n"
- " bar();\n"
- "}\n"
- "foo();\n"
- "}\n"
- "outer()\n"
- "//@ sourceURL=source_url";
- CHECK(CompileRunWithOrigin(source, "url", 0, 1)->IsUndefined());
-}
-
-
-v8::Handle<Value> AnalyzeStackOfDynamicScriptWithSourceURL(
- const v8::Arguments& args) {
- v8::HandleScope scope;
- v8::Handle<v8::StackTrace> stackTrace =
- v8::StackTrace::CurrentStackTrace(10, v8::StackTrace::kDetailed);
- CHECK_EQ(4, stackTrace->GetFrameCount());
- v8::Handle<v8::String> url = v8_str("source_url");
- for (int i = 0; i < 3; i++) {
- v8::Handle<v8::String> name =
- stackTrace->GetFrame(i)->GetScriptNameOrSourceURL();
- CHECK(!name.IsEmpty());
- CHECK_EQ(url, name);
- }
- return v8::Undefined();
-}
-
-
-TEST(DynamicWithSourceURLInStackTrace) {
- v8::HandleScope scope;
- Local<ObjectTemplate> templ = ObjectTemplate::New();
- templ->Set(v8_str("AnalyzeStackOfDynamicScriptWithSourceURL"),
- v8::FunctionTemplate::New(
- AnalyzeStackOfDynamicScriptWithSourceURL));
- LocalContext context(0, templ);
-
- const char *source =
- "function outer() {\n"
- "function bar() {\n"
- " AnalyzeStackOfDynamicScriptWithSourceURL();\n"
- "}\n"
- "function foo() {\n"
- "\n"
- " bar();\n"
- "}\n"
- "foo();\n"
- "}\n"
- "outer()\n"
- "//@ sourceURL=source_url";
- CHECK(CompileRunWithOrigin(source, "url", 0, 0)->IsUndefined());
-}
-
static void CreateGarbageInOldSpace() {
v8::HandleScope scope;
i::AlwaysAllocateScope always_allocate;
@@ -17552,16 +17469,6 @@ THREADED_TEST(Regress137496) {
}
-THREADED_TEST(Regress149912) {
- v8::HandleScope scope;
- LocalContext context;
- Handle<FunctionTemplate> templ = FunctionTemplate::New();
- AddInterceptor(templ, EmptyInterceptorGetter, EmptyInterceptorSetter);
- context->Global()->Set(v8_str("Bug"), templ->GetFunction());
- CompileRun("Number.prototype.__proto__ = new Bug; var x = 0; x.foo();");
-}
-
-
#ifndef WIN32
class ThreadInterruptTest {
public:
« no previous file with comments | « test/cctest/test-alloc.cc ('k') | test/cctest/test-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698