Title: [111443] trunk/Tools
Revision
111443
Author
[email protected]
Date
2012-03-20 14:42:23 -0700 (Tue, 20 Mar 2012)

Log Message

Update the last test to use EXPECT_WK_STREQ.

Reviewed by Dan Bernstein.

* TestWebKitAPI/Tests/mac/AttributedString.mm: (TestWebKitAPI::TEST):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (111442 => 111443)


--- trunk/Tools/ChangeLog	2012-03-20 21:39:27 UTC (rev 111442)
+++ trunk/Tools/ChangeLog	2012-03-20 21:42:23 UTC (rev 111443)
@@ -1,5 +1,13 @@
 2012-03-20  Adele Peterson  <[email protected]>
 
+        Update the last test to use EXPECT_WK_STREQ.
+
+        Reviewed by Dan Bernstein.
+
+        * TestWebKitAPI/Tests/mac/AttributedString.mm: (TestWebKitAPI::TEST):
+
+2012-03-20  Adele Peterson  <[email protected]>
+
         "Attempt to insert nil value " exception when calling attributed string APIs on content with a custom font
         https://bugs.webkit.org/show_bug.cgi?id=81630
         <rdar://problem/10650660>

Modified: trunk/Tools/TestWebKitAPI/Tests/mac/AttributedString.mm (111442 => 111443)


--- trunk/Tools/TestWebKitAPI/Tests/mac/AttributedString.mm	2012-03-20 21:39:27 UTC (rev 111442)
+++ trunk/Tools/TestWebKitAPI/Tests/mac/AttributedString.mm	2012-03-20 21:42:23 UTC (rev 111443)
@@ -63,7 +63,7 @@
         
     NSAttributedString *attrString = [(NSView <NSTextInput> *)[[[webView.get() mainFrame] frameView] documentView] attributedSubstringFromRange:NSMakeRange(0, 5)];
 
-    EXPECT_TRUE([[attrString string] isEqual:@"Lorem"]);
+    EXPECT_WK_STREQ("Lorem", [attrString string]);
 }
 
 TEST(WebKit2, AttributedStringTest)
@@ -85,7 +85,8 @@
     NSRange range = NSMakeRange(0, 5);
     NSRange actualRange;
     NSAttributedString *attrString = [webView.platformView() attributedSubstringForProposedRange:range actualRange:&actualRange];
-    EXPECT_TRUE([[attrString string] isEqual:@"Lorem"]);
+
+    EXPECT_WK_STREQ("Lorem", [attrString string]);
 }
 
     
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to