Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 394401
Collapse All | Expand All

(-)a/bundles/org.eclipse.rap.rwt/js/qx/client/History.js (-3 / +1 lines)
Lines 245-253 Link Here
245
245
246
      this._timer.addEventListener( "interval", function( e ) {
246
      this._timer.addEventListener( "interval", function( e ) {
247
        var newHash = this.__getState();
247
        var newHash = this.__getState();
248
        // RAP [if] Ignore all non application states
248
        if( newHash != this._state ) {
249
        //if (newHash != this._state) {
250
        if( newHash != this._state && this._titles[ newHash ] != null ) {
251
          this.__onHistoryLoad(newHash);
249
          this.__onHistoryLoad(newHash);
252
        }
250
        }
253
      }, this );
251
      }, this );
(-)a/tests/org.eclipse.rap.rwt.jstest/js/org/eclipse/rwt/test/tests/BrowserHistoryTest.js (+30 lines)
Lines 52-57 Link Here
52
      assertEquals( "text1", browserHistory._titles[ "id1" ] );
52
      assertEquals( "text1", browserHistory._titles[ "id1" ] );
53
    },
53
    },
54
54
55
    testSendNavigatedWithUnknownEntry : [
56
      function() {
57
        var browserHistory = this._createBrowserHistoryByProtocol();
58
        org.eclipse.rwt.protocol.Processor.processOperation( {
59
          "target" : "bh",
60
          "action" : "call",
61
          "method" : "add",
62
          "properties" : {
63
            "entries" : [ [ "id1", "text1" ], [ "id2", "text2" ] ]
64
          }
65
        } );
66
        org.eclipse.rwt.protocol.Processor.processOperation( {
67
          "target" : "bh",
68
          "action" : "listen",
69
          "properties" : {
70
            "navigation" : true
71
          }
72
        } );
73
        org.eclipse.rwt.test.fixture.TestUtil.store( browserHistory );
74
        org.eclipse.rwt.test.fixture.TestUtil.delayTest( 200 );
75
      },
76
      function( browserHistory) {
77
        browserHistory.__getState = function() { return "id3"; };
78
        org.eclipse.rwt.test.fixture.TestUtil.forceInterval( browserHistory._timer );
79
80
        var msg = org.eclipse.rwt.test.fixture.TestUtil.getMessage();
81
        assertTrue( msg.indexOf( "org.eclipse.rwt.events.historyNavigated.entryId=id3" ) != -1 );
82
      }
83
    ],
84
55
    /////////
85
    /////////
56
    // Helper
86
    // Helper
57
87

Return to bug 394401