Giter Site home page Giter Site logo

Comments (10)

zqzhang avatar zqzhang commented on June 29, 2024

To support tools/build/copy.py, I would like to introduce tools/build/resources.json to track targets, with constraints below in mind:

  • testharness.css, testharness.js and testharnessreport.js appear together; so only need testharness instead.
  • unitcommon.js is only used for Tizen Device APIs.
  • jquery-1.10.2.min.js, testrunner.js and index.html from webrunner appear together too, so only use webrunner.
  • testcase.xsl, testresult.xsl and tests.css work together; just use teststyle.
  • Unify jquery.js, jquery.min.js, jquery.mobile.js to jquery-1.10.2.min.js, or other version of jquery; so use jquery.
  • The rest jqueryprogressbar.js and slider.tooltip.js make use of their own names.

Therefore, tools/build/resources.json has data format like

{
  "testharness": [
    "webapi/tct-2dtransforms-css3-tests/resources/",
    ...
  ],
  "unitcommon.js": [
    ...
  ],
  "webrunner": [
    ...
  ],
  "teststyle": [
    ...
  ],
  "jquery": [
    ...
  ],
  "jqueryprogressbar.js": [
    ...
  ],
  "slider.tooltip.js": [
    ...
  ]
}

from crosswalk-test-suite.

yugang avatar yugang commented on June 29, 2024

why we do not use suite.json and pack.py?

from crosswalk-test-suite.

zqzhang avatar zqzhang commented on June 29, 2024

Hmm, if suite.json and pack.py are able to meet this usage, I would like to accept them.

  • John clone his forked crosswalk-test-suite repository locally. In his local develop machine, John setups an HTTP service with the crosswalk-test-suite test code. At current being, he is able to access the test files via HTTP on browsers and debug the test code. After the refactor, he still wants this workable. That is, instead of building test suite packages, he just wants the support resource files copied to their places as current being.

So far as I know, suite.json and pack.py do not satisfy.

from crosswalk-test-suite.

jennycao avatar jennycao commented on June 29, 2024

Yunfei, Jiajia
update suite.json for coping resources/ and webrunner/ from $TOOLS to each suite.

from crosswalk-test-suite.

jennycao avatar jennycao commented on June 29, 2024

Zhiqiang/Wanming
copy the test suites to crosswalk/tools/.
add a script to copy the resources and webrunner to each suites according to the config in suite.json.
testcase.xsl (197)
testresult.xsl (169)
tests.css (201)
these 3 only copy in COPY script

from crosswalk-test-suite.

jennycao avatar jennycao commented on June 29, 2024

DO not moved
jquery.js (6)
jquery-1.10.2.min.js (220)
jquery.min.js (3)
jquery.mobile.js (6)
jqueryprogressbar.js (2)

from crosswalk-test-suite.

jennycao avatar jennycao commented on June 29, 2024

target code update ready and script ready at ww42.3
UT ready at ww42.5
Zhiqiang will make the patch( resource move, and suite.josn update, copy script) to github

from crosswalk-test-suite.

zqzhang avatar zqzhang commented on June 29, 2024

In IVI TCT, there are 4 versions of jQuery:

test/tct$ find . -name 'jquery*js' -type f | sort
./behavior/ivi/js/thirdparty/jquery.js (jQuery v1.8.2)
./manager/style/jquery.min.js (jQuery v1.7.1)
./shell/style/jquery.min.js (jQuery v1.7.1)
./utilities/tools/manager/style/jquery.min.js (jQuery v1.7.1)
./utilities/tools/shell/style/jquery.min.js (jQuery v1.7.1)
./utilities/tools/testkitlite/web/jquery.js (jQuery v1.7)
./utilities/tools/testkitlite/xsd/jquery.min.js  (jQuery v1.7.1)
./webapi/ivi/tct-2dtransforms-css3-tests/webrunner/jquery-1.10.2.min.js (jQuery v1.10.2)

Consider bootstrap-demo/js/jquery-1.11.1.min.js (jQuery v1.11.1) and https://code.jquery.com/jquery-1.11.2.js (latest 1.x), we may have 6 versions of jQuery.

I think we can unify them to the latest version.

@haoxli @alfred99 could you please have a further check?

from crosswalk-test-suite.

haoxli avatar haoxli commented on June 29, 2024

I've done the testharness, webrunner, test xls of webapi in PR#1561, please have a review

from crosswalk-test-suite.

zqzhang avatar zqzhang commented on June 29, 2024

Except several versions of jQuery, these thoughts have been done. Thank you all.

from crosswalk-test-suite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.