plasma-framework/scriptengines/javascript/tests/javascript-config-test/contents/code/main.js
Aaron J. Seigo bd9131acfa actually test writing to the config
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=907290
2009-01-07 20:28:10 +00:00

8 lines
230 B
JavaScript

print(plasmoid.readConfig("Test"));
plasmoid.activeConfig = "secondary";
print(plasmoid.activeConfig);
print(plasmoid.readConfig("Test"));
plasmoid.writeConfig("Test", "You should see this!");
print(plasmoid.readConfig("Test"));