test_dr_basic.js
Go to the documentation of this file.
1 
31 function runTest () {
33  prepDRBasic();
34 
35  const drConstructor = new Components.Constructor("@songbirdnest.com/Songbird/DataRemote;1", "sbIDataRemote", "init");
36  var dr = new drConstructor("foo", null);
37  dr.stringValue = "Success";
38 
39  var expression = /Success/;
40  if ( !expression.test(dr.stringValue) )
41  return Components.results.NS_ERROR_FAILURE;
42 
43  return Components.results.NS_OK;
44 }
45 
function prepDataRemotes()
Head file for DataRemote unit tests.
return null
Definition: FeedWriter.js:1143
function prepDRBasic()
Head file for DataRemote unit tests.
function runTest()
Basic DataRemote unit tests.