@@ -1118,7 +1118,7 @@ describe('$mdPanel', function() {
1118
1118
it ( 'with respect to an element' , function ( ) {
1119
1119
var position = mdPanelPosition
1120
1120
. relativeTo ( myButton [ 0 ] )
1121
- . withPanelPosition ( xPosition . ALIGN_START , yPosition . ALIGN_TOPS ) ;
1121
+ . addPanelPosition ( xPosition . ALIGN_START , yPosition . ALIGN_TOPS ) ;
1122
1122
1123
1123
config [ 'position' ] = position ;
1124
1124
@@ -1132,7 +1132,7 @@ describe('$mdPanel', function() {
1132
1132
it ( 'with respect to a query selector' , function ( ) {
1133
1133
var position = mdPanelPosition
1134
1134
. relativeTo ( 'button' )
1135
- . withPanelPosition ( xPosition . ALIGN_START , yPosition . ALIGN_TOPS ) ;
1135
+ . addPanelPosition ( xPosition . ALIGN_START , yPosition . ALIGN_TOPS ) ;
1136
1136
1137
1137
config [ 'position' ] = position ;
1138
1138
@@ -1146,7 +1146,7 @@ describe('$mdPanel', function() {
1146
1146
it ( 'with respect to a JQLite object' , function ( ) {
1147
1147
var position = mdPanelPosition
1148
1148
. relativeTo ( myButton )
1149
- . withPanelPosition ( xPosition . ALIGN_START , yPosition . ALIGN_TOPS ) ;
1149
+ . addPanelPosition ( xPosition . ALIGN_START , yPosition . ALIGN_TOPS ) ;
1150
1150
1151
1151
config [ 'position' ] = position ;
1152
1152
@@ -1161,7 +1161,7 @@ describe('$mdPanel', function() {
1161
1161
it ( 'above an element' , function ( ) {
1162
1162
var position = mdPanelPosition
1163
1163
. relativeTo ( myButton )
1164
- . withPanelPosition ( null , yPosition . ABOVE ) ;
1164
+ . addPanelPosition ( null , yPosition . ABOVE ) ;
1165
1165
1166
1166
config [ 'position' ] = position ;
1167
1167
@@ -1175,7 +1175,7 @@ describe('$mdPanel', function() {
1175
1175
it ( 'top aligned with an element' , function ( ) {
1176
1176
var position = mdPanelPosition
1177
1177
. relativeTo ( myButton )
1178
- . withPanelPosition ( null , yPosition . ALIGN_TOPS ) ;
1178
+ . addPanelPosition ( null , yPosition . ALIGN_TOPS ) ;
1179
1179
1180
1180
config [ 'position' ] = position ;
1181
1181
@@ -1189,7 +1189,7 @@ describe('$mdPanel', function() {
1189
1189
it ( 'centered with an element' , function ( ) {
1190
1190
var position = mdPanelPosition
1191
1191
. relativeTo ( myButton )
1192
- . withPanelPosition ( null , yPosition . CENTER ) ;
1192
+ . addPanelPosition ( null , yPosition . CENTER ) ;
1193
1193
1194
1194
config [ 'position' ] = position ;
1195
1195
@@ -1206,7 +1206,7 @@ describe('$mdPanel', function() {
1206
1206
it ( 'bottom aligned with an element' , function ( ) {
1207
1207
var position = mdPanelPosition
1208
1208
. relativeTo ( myButton )
1209
- . withPanelPosition ( null , yPosition . ALIGN_BOTTOMS ) ;
1209
+ . addPanelPosition ( null , yPosition . ALIGN_BOTTOMS ) ;
1210
1210
1211
1211
config [ 'position' ] = position ;
1212
1212
@@ -1220,7 +1220,7 @@ describe('$mdPanel', function() {
1220
1220
it ( 'below an element' , function ( ) {
1221
1221
var position = mdPanelPosition
1222
1222
. relativeTo ( myButton )
1223
- . withPanelPosition ( null , yPosition . BELOW ) ;
1223
+ . addPanelPosition ( null , yPosition . BELOW ) ;
1224
1224
1225
1225
config [ 'position' ] = position ;
1226
1226
@@ -1236,7 +1236,7 @@ describe('$mdPanel', function() {
1236
1236
it ( 'offset to the left of an element' , function ( ) {
1237
1237
var position = mdPanelPosition
1238
1238
. relativeTo ( myButton )
1239
- . withPanelPosition ( xPosition . OFFSET_START , null ) ;
1239
+ . addPanelPosition ( xPosition . OFFSET_START , null ) ;
1240
1240
1241
1241
config [ 'position' ] = position ;
1242
1242
@@ -1250,7 +1250,7 @@ describe('$mdPanel', function() {
1250
1250
it ( 'right aligned with an element' , function ( ) {
1251
1251
var position = mdPanelPosition
1252
1252
. relativeTo ( myButton )
1253
- . withPanelPosition ( xPosition . ALIGN_END , null ) ;
1253
+ . addPanelPosition ( xPosition . ALIGN_END , null ) ;
1254
1254
1255
1255
config [ 'position' ] = position ;
1256
1256
@@ -1264,7 +1264,7 @@ describe('$mdPanel', function() {
1264
1264
it ( 'centered with an element' , function ( ) {
1265
1265
var position = mdPanelPosition
1266
1266
. relativeTo ( myButton )
1267
- . withPanelPosition ( xPosition . CENTER , null ) ;
1267
+ . addPanelPosition ( xPosition . CENTER , null ) ;
1268
1268
1269
1269
config [ 'position' ] = position ;
1270
1270
@@ -1281,7 +1281,7 @@ describe('$mdPanel', function() {
1281
1281
it ( 'left aligned with an element' , function ( ) {
1282
1282
var position = mdPanelPosition
1283
1283
. relativeTo ( myButton )
1284
- . withPanelPosition ( xPosition . ALIGN_START , null ) ;
1284
+ . addPanelPosition ( xPosition . ALIGN_START , null ) ;
1285
1285
1286
1286
config [ 'position' ] = position ;
1287
1287
@@ -1295,7 +1295,7 @@ describe('$mdPanel', function() {
1295
1295
it ( 'offset to the right of an element' , function ( ) {
1296
1296
var position = mdPanelPosition
1297
1297
. relativeTo ( myButton )
1298
- . withPanelPosition ( xPosition . OFFSET_END , null ) ;
1298
+ . addPanelPosition ( xPosition . OFFSET_END , null ) ;
1299
1299
1300
1300
config [ 'position' ] = position ;
1301
1301
@@ -1316,7 +1316,7 @@ describe('$mdPanel', function() {
1316
1316
var expression = function ( ) {
1317
1317
mdPanelPosition
1318
1318
. relativeTo ( myButton )
1319
- . withPanelPosition ( 'fake-x-position' , null ) ;
1319
+ . addPanelPosition ( 'fake-x-position' , null ) ;
1320
1320
} ;
1321
1321
1322
1322
expect ( expression ) . toThrow ( ) ;
0 commit comments