Bug 141355 - Add some dictionary lookup tests
Summary: Add some dictionary lookup tests
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Tim Horton
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-07 02:38 PST by Tim Horton
Modified: 2015-02-07 18:45 PST (History)
9 users (show)

See Also:


Attachments
Patch (20.01 KB, patch)
2015-02-07 02:40 PST, Tim Horton
no flags Details | Formatted Diff | Diff
Patch (20.01 KB, patch)
2015-02-07 02:50 PST, Tim Horton
no flags Details | Formatted Diff | Diff
Patch (20.02 KB, patch)
2015-02-07 03:32 PST, Tim Horton
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews103 for mac-mavericks (550.52 KB, application/zip)
2015-02-07 04:18 PST, Build Bot
no flags Details
Archive of layout-test-results from ews104 for mac-mavericks-wk2 (709.44 KB, application/zip)
2015-02-07 04:24 PST, Build Bot
no flags Details
Patch for EWS (16.13 KB, patch)
2015-02-07 17:44 PST, Tim Horton
no flags Details | Formatted Diff | Diff
Patch for EWS (16.25 KB, patch)
2015-02-07 18:04 PST, Tim Horton
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Horton 2015-02-07 02:38:55 PST
Add some dictionary lookup tests
Comment 1 Tim Horton 2015-02-07 02:40:22 PST
Created attachment 246203 [details]
Patch
Comment 2 Tim Horton 2015-02-07 02:50:04 PST
Created attachment 246204 [details]
Patch
Comment 3 Tim Horton 2015-02-07 03:32:02 PST
Created attachment 246205 [details]
Patch
Comment 4 WebKit Commit Bot 2015-02-07 03:34:29 PST
Attachment 246205 [details] did not pass style-queue:


ERROR: Source/WebCore/testing/Internals.cpp:1105:  Declaration has space between type name and * in NSDictionary *options  [whitespace/declaration] [3]
Total errors found: 1 in 25 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 5 Build Bot 2015-02-07 04:18:51 PST
Comment on attachment 246205 [details]
Patch

Attachment 246205 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/6090105475301376

New failing tests:
platform/mac/editing/dictionary-lookup/dictionary-lookup-input.html
Comment 6 Build Bot 2015-02-07 04:18:56 PST
Created attachment 246206 [details]
Archive of layout-test-results from ews103 for mac-mavericks

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103  Port: mac-mavericks  Platform: Mac OS X 10.9.5
Comment 7 Build Bot 2015-02-07 04:24:24 PST
Comment on attachment 246205 [details]
Patch

Attachment 246205 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/4817938041274368

New failing tests:
platform/mac/editing/dictionary-lookup/dictionary-lookup-input.html
Comment 8 Build Bot 2015-02-07 04:24:29 PST
Created attachment 246207 [details]
Archive of layout-test-results from ews104 for mac-mavericks-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews104  Port: mac-mavericks-wk2  Platform: Mac OS X 10.9.5
Comment 9 Tim Horton 2015-02-07 04:25:00 PST
Hmm, I guess I better use a fixed-width font and an explicit point size. Or adjust the words so it's harder to vary what you hit. Or figure out how to target just a word like all the other tests...
Comment 10 Darin Adler 2015-02-07 11:11:39 PST
Comment on attachment 246205 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=246205&action=review

Do all these tests need to be separate? Can we combine more than one test in a single HTML/expected pair?

dictionary-lookup-input.html seems to be failing on the bot so please don’t land until that’s fixed

> Source/WebCore/testing/Internals.cpp:1108
> +    ec = INVALID_ACCESS_ERR;

UNUSED_PARAM for x and y?

> Source/WebCore/testing/Internals.h:165
> +    PassRefPtr<Range> rangeForDictionaryLookupAtLocation(long x, long y, ExceptionCode&);

Return value should just be RefPtr.

Argument types should be int, not long. Confusingly, IDL file “long” corresponds to C++ file “int”.
Comment 11 Tim Horton 2015-02-07 17:44:23 PST
Created attachment 246228 [details]
Patch for EWS
Comment 12 WebKit Commit Bot 2015-02-07 17:47:05 PST
Attachment 246228 [details] did not pass style-queue:


ERROR: Source/WebCore/testing/Internals.cpp:1105:  Declaration has space between type name and * in NSDictionary *options  [whitespace/declaration] [3]
Total errors found: 1 in 17 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 13 Tim Horton 2015-02-07 18:01:11 PST
Forgot to add some annotations.
Comment 14 Tim Horton 2015-02-07 18:04:16 PST
Created attachment 246229 [details]
Patch for EWS
Comment 15 WebKit Commit Bot 2015-02-07 18:06:31 PST
Attachment 246229 [details] did not pass style-queue:


ERROR: Source/WebCore/testing/Internals.cpp:1105:  Declaration has space between type name and * in NSDictionary *options  [whitespace/declaration] [3]
Total errors found: 1 in 17 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 16 Tim Horton 2015-02-07 18:44:19 PST
http://trac.webkit.org/changeset/179792
Comment 17 Tim Horton 2015-02-07 18:45:53 PST
(In reply to comment #10)
> Comment on attachment 246205 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=246205&action=review
> 
> Do all these tests need to be separate? Can we combine more than one test in
> a single HTML/expected pair?

I merged a bunch. Not all of them, but into semi-logical chunks.