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

Unified Diff: chrome/browser/cocoa/bug_report_window_controller_unittest.mm

Issue 371057: Fix NSString conversions to treat a null NSString as a string of length 0, in... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 | « chrome/browser/cocoa/bug_report_window_controller.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/bug_report_window_controller_unittest.mm
===================================================================
--- chrome/browser/cocoa/bug_report_window_controller_unittest.mm (revision 31117)
+++ chrome/browser/cocoa/bug_report_window_controller_unittest.mm (working copy)
@@ -54,9 +54,10 @@
initWithTabContents:NULL
profile:profile_.get()];
- // Make sure that no page title or URL are recorded.
- EXPECT_TRUE([[controller pageURL] isEqualToString:@""]);
- EXPECT_TRUE([[controller pageTitle] isEqualToString:@""]);
+ // Make sure that no page title or URL are recorded. Note that IB reports
+ // empty textfields as NULL values.
+ EXPECT_FALSE([controller pageURL]);
+ EXPECT_FALSE([controller pageTitle]);
// When we call "report bug" with empty tab contents, only menu options
// that don't refer to a specific page should be available, and the send
« no previous file with comments | « chrome/browser/cocoa/bug_report_window_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698