Bug 67388 - [Qt][WK2] fast/loader tests failed after r94178
Summary: [Qt][WK2] fast/loader tests failed after r94178
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-01 04:59 PDT by Fehér Zsolt
Modified: 2012-01-26 12:19 PST (History)
2 users (show)

See Also:


Attachments
Patch (4.69 KB, patch)
2012-01-25 13:56 PST, Luciano Wolf
no flags Details | Formatted Diff | Diff
Patch (4.66 KB, patch)
2012-01-26 10:57 PST, Luciano Wolf
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fehér Zsolt 2011-09-01 04:59:30 PDT
This tests is:
fast/loader/local-CSS-from-local.html
fast/loader/local-JavaScript-from-local.html
fast/loader/local-image-from-local.html
Comment 1 Fehér Zsolt 2011-09-01 05:39:28 PDT
Tests Skipped in:
http://trac.webkit.org/changeset/94289
Comment 2 Luciano Wolf 2012-01-25 13:56:35 PST
Created attachment 124004 [details]
Patch

Applying the same fix used for Qt-WebKit1 from bug #67254 [Qt][DRT] Normalize file:///tmp/LayoutTests in LayoutTestController::pathToLocalResource()
Comment 3 Simon Hausmann 2012-01-26 01:04:01 PST
Comment on attachment 124004 [details]
Patch

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

> Tools/WebKitTestRunner/InjectedBundle/qt/LayoutTestControllerQt.cpp:92
> +    QString localTmpUrl(QLatin1String("file:///tmp/LayoutTests"));

Since this is Qt 5 it's better to write:

QString localTmpUrl(QStringLiteral("..."));

> Tools/WebKitTestRunner/InjectedBundle/qt/LayoutTestControllerQt.cpp:93
> +    QString givenUrl(QString(reinterpret_cast<const QChar*>(JSStringGetCharactersPtr(url)), JSStringGetLength(url)));

Why call the QString constructor twice? Can't you simply write:

QString givenUrl(reinterpret_cast..., ...);
Comment 4 Luciano Wolf 2012-01-26 10:57:53 PST
Created attachment 124146 [details]
Patch

Applying suggested changes to the previous patch. Thanks Simon.
Comment 5 WebKit Review Bot 2012-01-26 12:19:20 PST
Comment on attachment 124146 [details]
Patch

Clearing flags on attachment: 124146

Committed r106028: <http://trac.webkit.org/changeset/106028>
Comment 6 WebKit Review Bot 2012-01-26 12:19:24 PST
All reviewed patches have been landed.  Closing bug.