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

CurrentTimePropertyEndOfMediaTest fails when setStartTime(...) and setStopTime(...) is called.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • fx2.0.2
    • fx2.0
    • javafx
    • Windows XP using b45

      1) When the media is playing the currentTimeProperty is updated until the end of the media is reach and setOnEndOfMedia(...) is called. However, at the very end of the test the currentTimeProperty is updated one more time before the test is completely finished. Is this expected?

      2) When the media is playing and the player setStartTime(...) and setStopTime(...) is set, after the end of the media is reached and the setOnEndOfMedia(...) is called, the currentTimeProperty is still updated one more time to the value of setStopTime(...). The currentTimeProperty should be set to this value before the setOnEndOfMedia(...) is called.

      Please see the output for both of these cases below:


      C:\MediaTestSystem\MediaTestSystem\bin>java -jar TestRunner.jar run java-functio
      nal-automated:mts.java.automated.CurrentTimePropertyEndOfMediaTest -d3d
      Environment
        JAVA_HOME.......C:\Java\jdk1.7.0
        JAVAFX_HOME.....C:\JavaFX\2.0\b45\sdk
        Data Model......32-bit
        Rendering.......d3d
        Code Coverage...off
        Release.........2.0
        Build...........b45
        Configuration...configuration-4
        Machine.........sjchan-pc
        OS..............Windows XP
        OS Version......SP3
        OS Arch.........x86
        Java Version....1.7.0-ea
        Contact.........Marc Owerfeldt
        E-Mail..........Marc.Owerfeldt@oracle.com

      Running
        test : mts.java.automated.CurrentTimePropertyEndOfMediaTest
        timeout : 60000ms

      Parameters
        name : startTime
        value : 0
        name : duration
        value : 10292
        name : height
        value : 480
        name : width
        value : 640
        name : showVideo
        value : true
        name : url
        value : file:///C:/MediaTestSystem/MediaTestSystem/media/10sec.HawaiiGirl.64
      4830.fxm
        name : stopTime
        value : 0

      =>>C:\MediaTestSystem\MediaTestSystem\results\2.0\b45\configuration-4\java-funct
      ional-automated\mts\java\automated\CurrentTimePropertyEndOfMediaTest\
      cmd: C:\Java\jdk1.7.0/bin/java -Djavafx.toolkit=prism -Dprism.order=d3d -javaage
      nt:jcov.jar=type=all,file=C:\MediaTestSystem\MediaTestSystem\results\2.0\b45\con
      figuration-4\java-functional-automated\mts\java\automated\CurrentTimePropertyEnd
      OfMediaTest\CurrentTimePropertyEndOfMediaTest-1.jcov,i=javafx.scene.media.*,i=co
      m.sun.media.jfxmedia.* -cp C:\JavaFX\2.0\b45\sdk\rt\lib\jfxrt.jar;C:\MediaTestS
      ystem\MediaTestSystem\bin\TestRunner.jar;C:\MediaTestSystem\MediaTestSystem\bin\
      build\classes testrunner.Agent mts.java.automated.CurrentTimePropertyEndOfMediaT
      est startTime%3D0 duration%3D10292 height%3D480 width%3D640 showVideo%3Dtrue url
      %3Dfile%3A%2F%2F%2FC%3A%2FMediaTestSystem%2FMediaTestSystem%2Fmedia%2F10sec.Hawa
      iiGirl.644830.fxm stopTime%3D0
      param: startTime=0
      param: duration=10292
      param: height=480
      param: width=640
      param: showVideo=true
      param: url=file:///C:/MediaTestSystem/MediaTestSystem/media/10sec.HawaiiGirl.644
      830.fxm
      param: stopTime=0
      height => 480
      url => file:///C:/MediaTestSystem/MediaTestSystem/media/10sec.HawaiiGirl.644830.
      fxm
      showVideo => true
      startTime => 0
      width => 640
      stopTime => 0
      duration => 10292
      JavaFX: using com.sun.javafx.tk.quantum.QuantumToolkit
      [MTS] initialize test
      key: height - value: 480
      key: url - value: file:///C:/MediaTestSystem/MediaTestSystem/media/10sec.HawaiiG
      irl.644830.fxm
      key: showVideo - value: true
      key: startTime - value: 0
      key: width - value: 640
      key: stopTime - value: 0
      key: duration - value: 10292
      [MTS] run test
      duration: 10292.0
      0 currentTime: 4.716553
      1 currentTime: 112.607709
      2 currentTime: 204.036281
      3 currentTime: 314.195011
      4 currentTime: 412.471655
      5 currentTime: 506.89342400000004
      6 currentTime: 615.011337
      7 currentTime: 706.439909
      8 currentTime: 816.553287
      9 currentTime: 914.875283
      10 currentTime: 1009.2517
      11 currentTime: 1117.414965
      12 currentTime: 1208.843537
      13 currentTime: 1318.956916
      14 currentTime: 1417.324263
      15 currentTime: 1511.70068
      16 currentTime: 1619.818594
      17 currentTime: 1711.247165
      18 currentTime: 1821.3605440000001
      19 currentTime: 1919.6825390000001
      20 currentTime: 2014.104308
      21 currentTime: 2122.222222
      22 currentTime: 2226.439909
      23 currentTime: 2324.761904
      24 currentTime: 2423.1292510000003
      25 currentTime: 2517.460317
      26 currentTime: 2625.6235819999997
      27 currentTime: 2729.7959180000003
      28 currentTime: 2828.163265
      29 currentTime: 2926.439909
      30 currentTime: 3020.861678
      31 currentTime: 3128.979591
      32 currentTime: 3233.197278
      33 currentTime: 3331.6099769999996
      34 currentTime: 3429.841269
      35 currentTime: 3524.263038
      36 currentTime: 3632.380952
      37 currentTime: 3736.598639
      38 currentTime: 3834.920634
      39 currentTime: 3933.24263
      40 currentTime: 4027.619047
      41 currentTime: 4135.782312
      42 currentTime: 4240.045351
      43 currentTime: 4338.321995
      44 currentTime: 4436.598639
      45 currentTime: 4531.020407999999
      46 currentTime: 4639.138320999999
      47 currentTime: 4743.356009
      48 currentTime: 4841.678004
      49 currentTime: 4940.0
      50 currentTime: 5034.421767999999
      51 currentTime: 5142.539682
      52 currentTime: 5246.757369
      53 currentTime: 5345.0793650000005
      54 currentTime: 5443.40136
      55 currentTime: 5537.913832
      56 currentTime: 5645.9863940000005
      57 currentTime: 5750.15873
      58 currentTime: 5848.480725
      59 currentTime: 5946.802721
      60 currentTime: 6041.179138
      61 currentTime: 6149.297052
      62 currentTime: 6253.56009
      63 currentTime: 6351.8367339999995
      64 currentTime: 6450.15873
      65 currentTime: 6544.580498
      66 currentTime: 6652.698412000001
      67 currentTime: 6756.916099
      68 currentTime: 6855.238095
      69 currentTime: 6953.56009
      70 currentTime: 7047.936507
      71 currentTime: 7156.099773
      72 currentTime: 7260.317459999999
      73 currentTime: 7358.6394549999995
      74 currentTime: 7456.961451
      75 currentTime: 7551.337868
      76 currentTime: 7659.455782
      77 currentTime: 7763.71882
      78 currentTime: 7862.040816000001
      79 currentTime: 7960.408163
      80 currentTime: 8054.739229000001
      81 currentTime: 8162.857142
      82 currentTime: 8267.074829000001
      83 currentTime: 8365.396825
      84 currentTime: 8463.71882
      85 currentTime: 8558.095238
      86 currentTime: 8666.258503
      87 currentTime: 8770.47619
      88 currentTime: 8868.843537
      89 currentTime: 8967.120181
      90 currentTime: 9061.496598
      91 currentTime: 9169.659862999999
      92 currentTime: 9273.877551
      93 currentTime: 9372.199546
      94 currentTime: 9470.521541
      95 currentTime: 9564.897959
      96 currentTime: 9673.061224
      97 currentTime: 9777.324263
      98 currentTime: 9875.555555
      99 currentTime: 9973.877551
      100 currentTime: 10068.299319
      101 currentTime: 10176.417233
      102 currentTime: 10280.63492
      onEndOfMedia
      [MTS] cleanup test
      0 currentTime: 0.0
      [MTS] test passed
      mts.java.automated.CurrentTimePropertyEndOfMediaTest passed.

      Running
        test : mts.java.automated.CurrentTimePropertyEndOfMediaTest
        timeout : 60000ms

      Parameters
        name : startTime
        value : 2000
        name : duration
        value : 10292
        name : height
        value : 480
        name : width
        value : 640
        name : showVideo
        value : true
        name : url
        value : file:///C:/MediaTestSystem/MediaTestSystem/media/10sec.HawaiiGirl.64
      4830.fxm
        name : stopTime
        value : 8000

      =>>C:\MediaTestSystem\MediaTestSystem\results\2.0\b45\configuration-4\java-funct
      ional-automated\mts\java\automated\CurrentTimePropertyEndOfMediaTest\
      cmd: C:\Java\jdk1.7.0/bin/java -Djavafx.toolkit=prism -Dprism.order=d3d -javaage
      nt:jcov.jar=type=all,file=C:\MediaTestSystem\MediaTestSystem\results\2.0\b45\con
      figuration-4\java-functional-automated\mts\java\automated\CurrentTimePropertyEnd
      OfMediaTest\CurrentTimePropertyEndOfMediaTest-2.jcov,i=javafx.scene.media.*,i=co
      m.sun.media.jfxmedia.* -cp C:\JavaFX\2.0\b45\sdk\rt\lib\jfxrt.jar;C:\MediaTestS
      ystem\MediaTestSystem\bin\TestRunner.jar;C:\MediaTestSystem\MediaTestSystem\bin\
      build\classes testrunner.Agent mts.java.automated.CurrentTimePropertyEndOfMediaT
      est startTime%3D2000 duration%3D10292 height%3D480 width%3D640 showVideo%3Dtrue
      url%3Dfile%3A%2F%2F%2FC%3A%2FMediaTestSystem%2FMediaTestSystem%2Fmedia%2F10sec.H
      awaiiGirl.644830.fxm stopTime%3D8000
      param: startTime=2000
      param: duration=10292
      param: height=480
      param: width=640
      param: showVideo=true
      param: url=file:///C:/MediaTestSystem/MediaTestSystem/media/10sec.HawaiiGirl.644
      830.fxm
      param: stopTime=8000
      height => 480
      url => file:///C:/MediaTestSystem/MediaTestSystem/media/10sec.HawaiiGirl.644830.
      fxm
      showVideo => true
      startTime => 2000
      width => 640
      stopTime => 8000
      duration => 10292
      JavaFX: using com.sun.javafx.tk.quantum.QuantumToolkit
      [MTS] initialize test
      key: height - value: 480
      key: url - value: file:///C:/MediaTestSystem/MediaTestSystem/media/10sec.HawaiiG
      irl.644830.fxm
      key: showVideo - value: true
      key: startTime - value: 2000
      key: width - value: 640
      key: stopTime - value: 8000
      key: duration - value: 10292
      [MTS] run test
      duration: 10292.0
      0 currentTime: 2001.904761
      1 currentTime: 2111.156462
      2 currentTime: 2200.7709750000004
      3 currentTime: 2313.741496
      4 currentTime: 2413.968253
      5 currentTime: 2509.342403
      6 currentTime: 2610.612244
      7 currentTime: 2716.8253959999997
      8 currentTime: 2815.147392
      9 currentTime: 2915.4195010000003
      10 currentTime: 3010.79365
      11 currentTime: 3119.909297
      12 currentTime: 3212.3356
      13 currentTime: 3318.503401
      14 currentTime: 3402.267573
      15 currentTime: 3514.195011
      16 currentTime: 3623.310657
      17 currentTime: 3715.736961
      18 currentTime: 3821.904761
      19 currentTime: 3922.17687
      20 currentTime: 4017.55102
      21 currentTime: 4126.666666
      22 currentTime: 4219.092970000001
      23 currentTime: 4325.351473
      24 currentTime: 4425.578231
      25 currentTime: 4520.95238
      26 currentTime: 4630.068027
      27 currentTime: 4722.494331
      28 currentTime: 4828.707482000001
      29 currentTime: 4928.979591
      30 currentTime: 5024.353741
      31 currentTime: 5133.469387
      32 currentTime: 5225.895691
      33 currentTime: 5332.063491999999
      34 currentTime: 5432.3356
      35 currentTime: 5527.755102
      36 currentTime: 5636.870747999999
      37 currentTime: 5729.297052
      38 currentTime: 5835.464852
      39 currentTime: 5935.736961
      40 currentTime: 6031.111111
      41 currentTime: 6140.226756999999
      42 currentTime: 6232.698412000001
      43 currentTime: 6338.866213
      44 currentTime: 6439.138320999999
      45 currentTime: 6534.46712
      46 currentTime: 6643.628117
      47 currentTime: 6736.054421000001
      48 currentTime: 6842.222222
      49 currentTime: 6942.539682
      50 currentTime: 7037.86848
      51 currentTime: 7147.029478
      52 currentTime: 7239.455782
      53 currentTime: 7345.623582
      54 currentTime: 7445.895691
      55 currentTime: 7541.269841
      56 currentTime: 7650.3854870000005
      57 currentTime: 7742.857142
      58 currentTime: 7849.024942999999
      59 currentTime: 7949.297052000001
      onEndOfMedia
      0 currentTime: 8044.671201
      currentTimeProperty if updated after EOM is reached must not be greater than 0
      [MTS] cleanup test
      0 currentTime: 0.0
      [MTS] test failed
      mts.java.automated.CurrentTimePropertyEndOfMediaTest failed.

      number of tests run : 2
      number of tests passed : 1
      number of tests failed : 1
      number of tests timed out : 0

      C:\MediaTestSystem\MediaTestSystem\bin>

            bpb Brian Burkhalter
            sjchan Steven Chan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: