test_dr_advanced.js
Go to the documentation of this file.
1 
34 function runTest () {
36 
37  const drConstructor = new Components.Constructor("@songbirdnest.com/Songbird/DataRemote;1", "sbIDataRemote", "init");
38  var dr = new drConstructor("foo", null);
39  dr.stringValue = "Success";
40 
41  // Add section to link dataremotes to dom nodes here
42 
43  var expression = /Success/;
44  if ( !expression.test(dr.stringValue) )
45  return Components.results.NS_ERROR_FAILURE;
46 
47  return Components.results.NS_OK;
48 }
49 
function prepDataRemotes()
Head file for DataRemote unit tests.
function runTest()
Advanced DataRemote unit tests.
return null
Definition: FeedWriter.js:1143