B2G/gecko/browser/components/test/browser_bug538331.js
// Test opening the url provided by the updates.xml in the last test
Test opening the url provided by the updates.xml in the last test
Test opening the url provided by the updates . xml in the last test
function testNotificationURL()
{
  ok(true, "Test testNotificationURL: clicking the notification button " +
           "opened the url specified by the update");
  let href = gBrowser.selectedBrowser.contentWindow.location.href;
  let expectedURL = BG_NOTIFY_TESTS[BG_NOTIFY_TESTS.length - 1].notificationURL;
  is(href, expectedURL, "The url opened from the notification should be the " +
     "url provided by the update");
  gBrowser.removeCurrentTab();
  window.focus();
  finish_test();
}
function testNotificationURL ( ) { ok ( true , "Test testNotificationURL: clicking the notification button " + "opened the url specified by the update" ) ; let href = gBrowser . selectedBrowser . contentWindow . location . href ; let expectedURL = BG_NOTIFY_TESTS [ BG_NOTIFY_TESTS . length - 1 ] . notificationURL ; is ( href , expectedURL , "The url opened from the notification should be the " + "url provided by the update" ) ; gBrowser . removeCurrentTab ( ) ; window . focus ( ) ; finish_test ( ) ; }
Test opening the url provided by the updates.xml in the last test
Test opening the url provided by the updates . xml in the last test