Qt
  1. Qt
  2. QTBUG-25411

qmltest should expose identity of host platform

    Details

    • Technical Risk:
      Low
    • Commits:
      5e6b2bf68b2338ad9424b48193b860a70addd022

      Description

      At present, qml-only tests cannot see which platform they are running on (i.e. no equivalent of the Q_OS_FOO defines). This makes it impossible for a test to do anything conditionally depending on the platform, such as calling expectFail for a test that only fails on some platforms and passes on others (see QTBUG-25306 for an example).

        Issue Links

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

          Hide
          Charles Yin (closed Nokia identity) (Inactive) added a comment - - edited

          The possible solution is providing the global os namespace like: http://nodejs.org/api/os.html

          This feature probably should be part of QtQuick or QtQml module.

          Show
          Charles Yin (closed Nokia identity) (Inactive) added a comment - - edited The possible solution is providing the global os namespace like: http://nodejs.org/api/os.html This feature probably should be part of QtQuick or QtQml module.

          Yes, and it should get the informaiton from QPA somehow.

          Show
          Jason McDonald (Closed Nokia Identity. Please assign to "macadder" instead) (Inactive) added a comment - Yes, and it should get the informaiton from QPA somehow.
          Hide
          Charles Yin (closed Nokia identity) (Inactive) added a comment -

          A CommonJS os module like API is a more generic way to meet this requirement

          Show
          Charles Yin (closed Nokia identity) (Inactive) added a comment - A CommonJS os module like API is a more generic way to meet this requirement
          Hide
          Liang Qi added a comment -

          Now we have Qt.platform in QtQuick.

          Show
          Liang Qi added a comment - Now we have Qt.platform in QtQuick.

            People

            • Assignee:
              J-P Nurmi
              Reporter:
              Jason McDonald (Closed Nokia Identity. Please assign to "macadder" instead) (Inactive)
            • Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes