Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6355326

Incorrect JCK 6.0 b12 test: api/org_w3c/dom/ls/LSInput/index.html#order[order0005]

    • b60
    • 6
    • b71
    • x86
    • linux_redhat_4.0
    • Verified

      JCK 6.0 b12
      Testcase api/org_w3c/dom/ls/LSInput/index.html#order[order0005]
       FAILED - mustang b60, b61
       PASSED - mustang b59
       In this testcase method createLSInputEncoding() implemented in test class orderTests is
      called:
          public String order0005() {
              LSInput src = null;
            ....
               src = createLSInputEncoding();
      Inside createLSInputEncoding() first srting is:
          public LSInput createLSInputEncoding() throws CreateTestObjectException {
      ---> LSInput src = implLS.createLSInput();
      where type of implLS is DOMImplementationLS .
       But almost all data for test is set in method createLSInput() of class orderTests, which doesn't called at all in for this testcase, so we pass null string data in LSInput src
      for future parsing.

      In mustang b60 it causes
         org.w3c.dom.ls.LSException: Content is not allowed in prolog.
      at com.sun.org.apache.xerces.internal.parsers.DOMParserImpl.parse(Unknown Source)
      at javasoft.sqe.tests.api.org.w3c.dom.ls.LSInput.orderTests.order0005(orderTests.java:244)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:399)
      at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:195)
      at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:127)
      at javasoft.sqe.tests.api.org.w3c.dom.ls.LSInput.orderTests.main(orderTests.java:108)

      In mustang <=b59 it caused no error and test is passed by mistake.

      So at least one modification is needed in orderTests.java:
      in public LSInput createLSInputEncoding() throws CreateTestObjectException {
      --> old string LSInput src = implLS.createLSInput();
      --> new string LSInput src = createLSInput();

            sreddysunw Sunitha Reddy (Inactive)
            dgubkin Dmitriy Gubkin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: