cefclient Mac: add WebURLRequest test.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@198 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2011-03-04 02:38:53 +00:00
parent 91a46104f9
commit 131ac33548
1 changed files with 9 additions and 0 deletions

View File

@ -166,6 +166,7 @@ NSButton* MakeButton(NSRect* rect, NSString* title, NSView* parent) {
- (IBAction)testRequest:(id)sender; - (IBAction)testRequest:(id)sender;
- (IBAction)testLocalStorage:(id)sender; - (IBAction)testLocalStorage:(id)sender;
- (IBAction)testXMLHttpRequest:(id)sender; - (IBAction)testXMLHttpRequest:(id)sender;
- (IBAction)testWebURLRequest:(id)sender;
- (IBAction)testDOMAccess:(id)sender; - (IBAction)testDOMAccess:(id)sender;
- (IBAction)testSchemeHandler:(id)sender; - (IBAction)testSchemeHandler:(id)sender;
- (IBAction)testPopupWindow:(id)sender; - (IBAction)testPopupWindow:(id)sender;
@ -224,6 +225,9 @@ NSButton* MakeButton(NSRect* rect, NSString* title, NSView* parent) {
[testMenu addItemWithTitle:@"XMLHttpRequest" [testMenu addItemWithTitle:@"XMLHttpRequest"
action:@selector(testXMLHttpRequest:) action:@selector(testXMLHttpRequest:)
keyEquivalent:@""]; keyEquivalent:@""];
[testMenu addItemWithTitle:@"WebURLRequest"
action:@selector(testWebURLRequest:)
keyEquivalent:@""];
[testMenu addItemWithTitle:@"DOM Access" [testMenu addItemWithTitle:@"DOM Access"
action:@selector(testDOMAccess:) action:@selector(testDOMAccess:)
keyEquivalent:@""]; keyEquivalent:@""];
@ -374,6 +378,11 @@ NSButton* MakeButton(NSRect* rect, NSString* title, NSView* parent) {
RunXMLHTTPRequestTest(g_handler->GetBrowser()); RunXMLHTTPRequestTest(g_handler->GetBrowser());
} }
- (IBAction)testWebURLRequest:(id)sender {
if(g_handler.get() && g_handler->GetBrowserHwnd())
RunWebURLRequestTest(g_handler->GetBrowser());
}
- (IBAction)testDOMAccess:(id)sender { - (IBAction)testDOMAccess:(id)sender {
if(g_handler.get() && g_handler->GetBrowserHwnd()) if(g_handler.get() && g_handler->GetBrowserHwnd())
RunDOMAccessTest(g_handler->GetBrowser()); RunDOMAccessTest(g_handler->GetBrowser());