Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added OneNote as a host to taskpane and content add-ins #161

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,11 @@ module.exports = generators.Base.extend({
name: 'PowerPoint',
value: 'Presentation',
checked: true
},
{
name: 'OneNote',
value: 'Notebook',
checked: true
},
{
name: 'Project',
Expand Down
5 changes: 5 additions & 0 deletions generators/content/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ module.exports = generators.Base.extend({
name: 'PowerPoint',
value: 'Presentation',
checked: true
},
{
name: 'OneNote',
value: 'Notebook',
checked: true
},
{
name: 'Project',
Expand Down
5 changes: 5 additions & 0 deletions generators/taskpane/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ module.exports = generators.Base.extend({
name: 'PowerPoint',
value: 'Presentation',
checked: true
},
{
name: 'OneNote',
value: 'Notebook',
checked: true
},
{
name: 'Project',
Expand Down
15 changes: 15 additions & 0 deletions test/content/existingproj-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,21 @@ describe('office:content', function () {
});
expect(found, '<Host Name="Presentation"/> exist').to.be.true;

done();
});

/**
* OneNote present in host entry.
*/
it('includes OneNote in Hosts', function(done){
var found = false;
_.forEach(manifest.OfficeApp.Hosts[0].Host, function(h){
if (h.$.Name === 'Notebook') {
found = true;
}
});
expect(found, '<Host Name="Notebook"/> exist').to.be.true;

done();
});

Expand Down
15 changes: 15 additions & 0 deletions test/content/existingproj-manifestonly.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,21 @@ describe('office:content', function(){
});
expect(found,'<Host Name="Presentation"/> exist').to.be.true;

done();
});

/**
* OneNote present in host entry.
*/
it('includes OneNote in Hosts', function(done){
var found = false;
_.forEach(manifest.OfficeApp.Hosts[0].Host, function(h){
if (h.$.Name === 'Notebook') {
found = true;
}
});
expect(found, '<Host Name="Notebook"/> exist').to.be.true;

done();
});

Expand Down
15 changes: 15 additions & 0 deletions test/content/existingproj-ng.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,21 @@ describe('office:content', function(){
});
expect(found, '<Host Name="Presentation"/> exist').to.be.true;

done();
});

/**
* OneNote present in host entry.
*/
it('includes OneNote in Hosts', function(done){
var found = false;
_.forEach(manifest.OfficeApp.Hosts[0].Host, function(h){
if (h.$.Name === 'Notebook') {
found = true;
}
});
expect(found, '<Host Name="Notebook"/> exist').to.be.true;

done();
});

Expand Down
15 changes: 15 additions & 0 deletions test/content/existingproj-ngadal.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,21 @@ describe('office:content', function(){
});
expect(found, '<Host Name="Presentation"/> exist').to.be.true;

done();
});

/**
* OneNote present in host entry.
*/
it('includes OneNote in Hosts', function(done){
var found = false;
_.forEach(manifest.OfficeApp.Hosts[0].Host, function(h){
if (h.$.Name === 'Notebook') {
found = true;
}
});
expect(found, '<Host Name="Notebook"/> exist').to.be.true;

done();
});

Expand Down
15 changes: 15 additions & 0 deletions test/content/newproj-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,21 @@ describe('office:content', function(){
});
expect(found,'<Host Name="Presentation"/> exist').to.be.true;

done();
});

/**
* OneNote present in host entry.
*/
it('includes OneNote in Hosts', function(done){
var found = false;
_.forEach(manifest.OfficeApp.Hosts[0].Host, function(h){
if (h.$.Name === 'Notebook') {
found = true;
}
});
expect(found, '<Host Name="Notebook"/> exist').to.be.true;

done();
});

Expand Down
15 changes: 15 additions & 0 deletions test/content/newproj-manifestonly.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,21 @@ describe('office:content', function(){
});
expect(found,'<Host Name="Presentation"/> exist').to.be.true;

done();
});

/**
* OneNote present in host entry.
*/
it('includes OneNote in Hosts', function(done){
var found = false;
_.forEach(manifest.OfficeApp.Hosts[0].Host, function(h){
if (h.$.Name === 'Notebook') {
found = true;
}
});
expect(found, '<Host Name="Notebook"/> exist').to.be.true;

done();
});

Expand Down
15 changes: 15 additions & 0 deletions test/content/newproj-ng.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,21 @@ describe('office:content', function(){
});
expect(found,'<Host Name="Presentation"/> exist').to.be.true;

done();
});

/**
* OneNote present in host entry.
*/
it('includes OneNote in Hosts', function(done){
var found = false;
_.forEach(manifest.OfficeApp.Hosts[0].Host, function(h){
if (h.$.Name === 'Notebook') {
found = true;
}
});
expect(found, '<Host Name="Notebook"/> exist').to.be.true;

done();
});

Expand Down
15 changes: 15 additions & 0 deletions test/content/newproj-ngadal.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,21 @@ describe('office:content', function(){
done();
});

/**
* OneNote present in host entry.
*/
it('includes OneNote in Hosts', function(done){
var found = false;
_.forEach(manifest.OfficeApp.Hosts[0].Host, function(h){
if (h.$.Name === 'Notebook') {
found = true;
}
});
expect(found, '<Host Name="Notebook"/> exist').to.be.true;

done();
});

/**
* Project present in host entry.
*/
Expand Down
15 changes: 15 additions & 0 deletions test/taskpane/existingproj-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,21 @@ describe('office:taskpane', function(){
});
expect(found, '<Host Name="Presentation"/> exist').to.be.true;

done();
});

/**
* OneNote present in host entry.
*/
it('includes OneNote in Hosts', function(done){
var found = false;
_.forEach(manifest.OfficeApp.Hosts[0].Host, function(h){
if (h.$.Name === 'Notebook') {
found = true;
}
});
expect(found, '<Host Name="Notebook"/> exist').to.be.true;

done();
});

Expand Down
15 changes: 15 additions & 0 deletions test/taskpane/existingproj-manifestonly.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,21 @@ describe('office:taskpane', function(){
});
expect(found, '<Host Name="Presentation"/> exist').to.be.true;

done();
});

/**
* OneNote present in host entry.
*/
it('includes OneNote in Hosts', function(done){
var found = false;
_.forEach(manifest.OfficeApp.Hosts[0].Host, function(h){
if (h.$.Name === 'Notebook') {
found = true;
}
});
expect(found, '<Host Name="Notebook"/> exist').to.be.true;

done();
});

Expand Down
15 changes: 15 additions & 0 deletions test/taskpane/existingproj-ng.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,21 @@ describe('office:taskpane', function(){
done();
});

/**
* OneNote present in host entry.
*/
it('includes OneNote in Hosts', function(done){
var found = false;
_.forEach(manifest.OfficeApp.Hosts[0].Host, function(h){
if (h.$.Name === 'Notebook') {
found = true;
}
});
expect(found, '<Host Name="Notebook"/> exist').to.be.true;

done();
});

/**
* Project present in host entry.
*/
Expand Down
15 changes: 15 additions & 0 deletions test/taskpane/existingproj-ngadal.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,21 @@ describe('office:taskpane', function(){
done();
});

/**
* OneNote present in host entry.
*/
it('includes OneNote in Hosts', function(done){
var found = false;
_.forEach(manifest.OfficeApp.Hosts[0].Host, function(h){
if (h.$.Name === 'Notebook') {
found = true;
}
});
expect(found, '<Host Name="Notebook"/> exist').to.be.true;

done();
});

/**
* Project present in host entry.
*/
Expand Down
15 changes: 15 additions & 0 deletions test/taskpane/newproj-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,21 @@ describe('office:taskpane', function(){
});
expect(found, '<Host Name="Presentation"/> exist').to.be.true;

done();
});

/**
* OneNote present in host entry.
*/
it('includes OneNote in Hosts', function(done){
var found = false;
_.forEach(manifest.OfficeApp.Hosts[0].Host, function(h){
if (h.$.Name === 'Notebook') {
found = true;
}
});
expect(found, '<Host Name="Notebook"/> exist').to.be.true;

done();
});

Expand Down
15 changes: 15 additions & 0 deletions test/taskpane/newproj-manifestonly.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,21 @@ describe('office:taskpane', function(){
});
expect(found, '<Host Name="Presentation"/> exist').to.be.true;

done();
});

/**
* OneNote present in host entry.
*/
it('includes OneNote in Hosts', function(done){
var found = false;
_.forEach(manifest.OfficeApp.Hosts[0].Host, function(h){
if (h.$.Name === 'Notebook') {
found = true;
}
});
expect(found, '<Host Name="Notebook"/> exist').to.be.true;

done();
});

Expand Down
15 changes: 15 additions & 0 deletions test/taskpane/newproj-ng.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,21 @@ describe('office:taskpane', function(){
});
expect(found, '<Host Name="Presentation"/> exist').to.be.true;

done();
});

/**
* OneNote present in host entry.
*/
it('includes OneNote in Hosts', function(done){
var found = false;
_.forEach(manifest.OfficeApp.Hosts[0].Host, function(h){
if (h.$.Name === 'Notebook') {
found = true;
}
});
expect(found, '<Host Name="Notebook"/> exist').to.be.true;

done();
});

Expand Down
15 changes: 15 additions & 0 deletions test/taskpane/newproj-ngadal.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,21 @@ describe('office:taskpane', function(){
});
expect(found, '<Host Name="Presentation"/> exist').to.be.true;

done();
});

/**
* OneNote present in host entry.
*/
it('includes OneNote in Hosts', function(done){
var found = false;
_.forEach(manifest.OfficeApp.Hosts[0].Host, function(h){
if (h.$.Name === 'Notebook') {
found = true;
}
});
expect(found, '<Host Name="Notebook"/> exist').to.be.true;

done();
});

Expand Down