Skip to content

Commit

Permalink
Added OneNote as a host to taskpane and content add-ins
Browse files Browse the repository at this point in the history
  • Loading branch information
Linsen Wu committed Apr 18, 2016
1 parent 9c0cd2c commit 2d486e0
Show file tree
Hide file tree
Showing 19 changed files with 255 additions and 0 deletions.
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

0 comments on commit 2d486e0

Please sign in to comment.