[Webkit-unassigned] [Bug 67254] [Qt][DRT] Normalize file:///tmp/LayoutTests in LayoutTestController::pathToLocalResource()
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Sep 1 03:36:58 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=67254
Benjamin Poulain <benjamin at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #105896|review? |review-
Flag| |
--- Comment #5 from Benjamin Poulain <benjamin at webkit.org> 2011-09-01 03:36:58 PST ---
(From update of attachment 105896)
View in context: https://bugs.webkit.org/attachment.cgi?id=105896&action=review
> Tools/DumpRenderTree/qt/LayoutTestControllerQt.cpp:246
> // Function introduced in r28690.
> - return QDir::toNativeSeparators(url);
> +
You can remove the comment and the empty line, the are not adding any value.
> Tools/DumpRenderTree/qt/LayoutTestControllerQt.cpp:254
> + QFileInfo layoutTestsRoot(QCoreApplication::applicationDirPath() + "/../../../LayoutTests/");
Should probably be + QLatin1String("/../../../LayoutTests/");
> Tools/DumpRenderTree/qt/LayoutTestControllerQt.cpp:256
> + return url.left(7) + layoutTestsRoot.absolutePath() + url.mid(localTmpUrl.length());
url.left(7) -> magic numbers are not nice.
You can just use QLatin1String("file://").
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list