Bug 162569 - [GTK] TestContextMenu is failing
Summary: [GTK] TestContextMenu is failing
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-26 11:13 PDT by Tomas Popela
Modified: 2016-09-26 11:58 PDT (History)
2 users (show)

See Also:


Attachments
Proposed patch (2.20 KB, patch)
2016-09-26 11:17 PDT, Tomas Popela
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Popela 2016-09-26 11:13:31 PDT
The TestContextMenu unit test is failing with:

ERROR:../../Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestContextMenu.cpp:316:virtual bool ContextMenuDefaultTest::contextMenu(WebKitContextMenu*, GdkEvent*, WebKitHitTestResult*): assertion failed: (webkit_hit_test_result_context_is_media(hitTestResult))

The cause is the type of audio source that we are using:

<audio style='position:absolute; left:1; top:60' width='50' height='20' controls='controls' preload='none'><source src='track.mp3' type='audio/mp3' /></audio>

We cannot use the MP3 file, as it will not work by default on most distributions (that don't have an MP3 codecs installed). Change the test to use OGG file instead.
Comment 1 Tomas Popela 2016-09-26 11:17:37 PDT
Created attachment 289839 [details]
Proposed patch
Comment 2 WebKit Commit Bot 2016-09-26 11:58:16 PDT
Comment on attachment 289839 [details]
Proposed patch

Clearing flags on attachment: 289839

Committed r206382: <http://trac.webkit.org/changeset/206382>
Comment 3 WebKit Commit Bot 2016-09-26 11:58:20 PDT
All reviewed patches have been landed.  Closing bug.