Bug 59900 - StringImpl::endsWith has some insane code
Summary: StringImpl::endsWith has some insane code
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: Adam Barth
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-01 16:11 PDT by Adam Barth
Modified: 2011-05-02 09:53 PDT (History)
5 users (show)

See Also:


Attachments
Patch (1.83 KB, patch)
2011-05-01 16:13 PDT, Adam Barth
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from cr-jail-7 (40.58 KB, application/zip)
2011-05-01 21:32 PDT, WebKit Commit Bot
no flags Details
Patch (1.58 KB, patch)
2011-05-02 01:55 PDT, Adam Barth
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Barth 2011-05-01 16:11:05 PDT
StringImpl::endsWith has some insane (and wrong) code
Comment 1 Adam Barth 2011-05-01 16:13:03 PDT
Created attachment 91855 [details]
Patch
Comment 2 Eric Seidel (no email) 2011-05-01 16:15:13 PDT
Comment on attachment 91855 [details]
Patch

How do we test this?
Comment 3 Adam Barth 2011-05-01 16:25:32 PDT
@dave_levin: Is the WTF unit testing framework ready for use?
Comment 4 Sam Weinig 2011-05-01 17:47:18 PDT
(In reply to comment #3)
> @dave_levin: Is the WTF unit testing framework ready for use?

The existing one in Tools/TestWebKitAPI works.  It will be transitioned to GTest at somepoint, but that should not stop people from using it now.
Comment 5 Adam Barth 2011-05-01 17:50:28 PDT
WebKitAPITest != TestWebKitAPI :)
Comment 6 Sam Weinig 2011-05-01 17:53:07 PDT
(In reply to comment #5)
> WebKitAPITest != TestWebKitAPI :)

Adam Roben and I like to confuse and befuddle.
Comment 7 Adam Barth 2011-05-01 18:15:36 PDT
Sadly, that test harness can't handing anything the depends on String because the include paths are all screwed up.
Comment 8 Adam Barth 2011-05-01 20:02:52 PDT
Comment on attachment 91855 [details]
Patch

I'm just going to land this patch.  It doesn't seem worthwhile to teach this test harness to include these files if we're just going to change the harness soon.
Comment 9 WebKit Commit Bot 2011-05-01 21:32:36 PDT
Comment on attachment 91855 [details]
Patch

Rejecting attachment 91855 [details] from commit-queue.

Failed to run "['./Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '--bot-id=cr-jail-7', 'build-..." exit_code: 2

Last 500 characters of output:
led
..
animations/change-keyframes-name.html -> failed
.
animations/change-keyframes.html -> failed
.
animations/change-one-anim.html -> failed
.
animations/combo-transform-rotate+scale.html -> failed
.
animations/combo-transform-translate+scale.html -> failed
..
animations/dynamic-stylesheet-loading.html -> failed

Exiting early after 10 failures. 111 tests run.
38.93s total testing time

101 test cases (90%) succeeded
10 test cases (9%) had incorrect layout
2 test cases (1%) had stderr output

Full output: http://queues.webkit.org/results/8529503
Comment 10 WebKit Commit Bot 2011-05-01 21:32:40 PDT
Created attachment 91878 [details]
Archive of layout-test-results from cr-jail-7

The attached test failures were seen while running run-webkit-tests on the commit-queue.
Bot: cr-jail-7  Port: Mac  Platform: Mac OS X 10.6.7
Comment 11 Alexey Proskuryakov 2011-05-01 23:16:55 PDT
Comment on attachment 91855 [details]
Patch

+        return (caseSensitive ? find(matchString, start) == start : findIgnoringCase(matchString, start)) == start;

This is not right.
Comment 12 Adam Barth 2011-05-01 23:27:54 PDT
> This is not right.

Apparently.  :)
Comment 13 Adam Barth 2011-05-02 01:55:51 PDT
Created attachment 91898 [details]
Patch
Comment 14 WebKit Commit Bot 2011-05-02 09:51:47 PDT
The commit-queue encountered the following flaky tests while processing attachment 91898 [details]:

http/tests/xmlhttprequest/access-control-sandboxed-iframe-allow.html bug 59940
The commit-queue is continuing to process your patch.
Comment 15 WebKit Commit Bot 2011-05-02 09:52:56 PDT
Comment on attachment 91898 [details]
Patch

Clearing flags on attachment: 91898

Committed r85482: <http://trac.webkit.org/changeset/85482>
Comment 16 WebKit Commit Bot 2011-05-02 09:53:02 PDT
All reviewed patches have been landed.  Closing bug.