@@ -1118,7 +1118,7 @@ describe('$mdPanel', function() {
11181118 it ( 'with respect to an element' , function ( ) {
11191119 var position = mdPanelPosition
11201120 . relativeTo ( myButton [ 0 ] )
1121- . withPanelPosition ( xPosition . ALIGN_START , yPosition . ALIGN_TOPS ) ;
1121+ . addPanelPosition ( xPosition . ALIGN_START , yPosition . ALIGN_TOPS ) ;
11221122
11231123 config [ 'position' ] = position ;
11241124
@@ -1132,7 +1132,7 @@ describe('$mdPanel', function() {
11321132 it ( 'with respect to a query selector' , function ( ) {
11331133 var position = mdPanelPosition
11341134 . relativeTo ( 'button' )
1135- . withPanelPosition ( xPosition . ALIGN_START , yPosition . ALIGN_TOPS ) ;
1135+ . addPanelPosition ( xPosition . ALIGN_START , yPosition . ALIGN_TOPS ) ;
11361136
11371137 config [ 'position' ] = position ;
11381138
@@ -1146,7 +1146,7 @@ describe('$mdPanel', function() {
11461146 it ( 'with respect to a JQLite object' , function ( ) {
11471147 var position = mdPanelPosition
11481148 . relativeTo ( myButton )
1149- . withPanelPosition ( xPosition . ALIGN_START , yPosition . ALIGN_TOPS ) ;
1149+ . addPanelPosition ( xPosition . ALIGN_START , yPosition . ALIGN_TOPS ) ;
11501150
11511151 config [ 'position' ] = position ;
11521152
@@ -1161,7 +1161,7 @@ describe('$mdPanel', function() {
11611161 it ( 'above an element' , function ( ) {
11621162 var position = mdPanelPosition
11631163 . relativeTo ( myButton )
1164- . withPanelPosition ( null , yPosition . ABOVE ) ;
1164+ . addPanelPosition ( null , yPosition . ABOVE ) ;
11651165
11661166 config [ 'position' ] = position ;
11671167
@@ -1175,7 +1175,7 @@ describe('$mdPanel', function() {
11751175 it ( 'top aligned with an element' , function ( ) {
11761176 var position = mdPanelPosition
11771177 . relativeTo ( myButton )
1178- . withPanelPosition ( null , yPosition . ALIGN_TOPS ) ;
1178+ . addPanelPosition ( null , yPosition . ALIGN_TOPS ) ;
11791179
11801180 config [ 'position' ] = position ;
11811181
@@ -1189,7 +1189,7 @@ describe('$mdPanel', function() {
11891189 it ( 'centered with an element' , function ( ) {
11901190 var position = mdPanelPosition
11911191 . relativeTo ( myButton )
1192- . withPanelPosition ( null , yPosition . CENTER ) ;
1192+ . addPanelPosition ( null , yPosition . CENTER ) ;
11931193
11941194 config [ 'position' ] = position ;
11951195
@@ -1206,7 +1206,7 @@ describe('$mdPanel', function() {
12061206 it ( 'bottom aligned with an element' , function ( ) {
12071207 var position = mdPanelPosition
12081208 . relativeTo ( myButton )
1209- . withPanelPosition ( null , yPosition . ALIGN_BOTTOMS ) ;
1209+ . addPanelPosition ( null , yPosition . ALIGN_BOTTOMS ) ;
12101210
12111211 config [ 'position' ] = position ;
12121212
@@ -1220,7 +1220,7 @@ describe('$mdPanel', function() {
12201220 it ( 'below an element' , function ( ) {
12211221 var position = mdPanelPosition
12221222 . relativeTo ( myButton )
1223- . withPanelPosition ( null , yPosition . BELOW ) ;
1223+ . addPanelPosition ( null , yPosition . BELOW ) ;
12241224
12251225 config [ 'position' ] = position ;
12261226
@@ -1236,7 +1236,7 @@ describe('$mdPanel', function() {
12361236 it ( 'offset to the left of an element' , function ( ) {
12371237 var position = mdPanelPosition
12381238 . relativeTo ( myButton )
1239- . withPanelPosition ( xPosition . OFFSET_START , null ) ;
1239+ . addPanelPosition ( xPosition . OFFSET_START , null ) ;
12401240
12411241 config [ 'position' ] = position ;
12421242
@@ -1250,7 +1250,7 @@ describe('$mdPanel', function() {
12501250 it ( 'right aligned with an element' , function ( ) {
12511251 var position = mdPanelPosition
12521252 . relativeTo ( myButton )
1253- . withPanelPosition ( xPosition . ALIGN_END , null ) ;
1253+ . addPanelPosition ( xPosition . ALIGN_END , null ) ;
12541254
12551255 config [ 'position' ] = position ;
12561256
@@ -1264,7 +1264,7 @@ describe('$mdPanel', function() {
12641264 it ( 'centered with an element' , function ( ) {
12651265 var position = mdPanelPosition
12661266 . relativeTo ( myButton )
1267- . withPanelPosition ( xPosition . CENTER , null ) ;
1267+ . addPanelPosition ( xPosition . CENTER , null ) ;
12681268
12691269 config [ 'position' ] = position ;
12701270
@@ -1281,7 +1281,7 @@ describe('$mdPanel', function() {
12811281 it ( 'left aligned with an element' , function ( ) {
12821282 var position = mdPanelPosition
12831283 . relativeTo ( myButton )
1284- . withPanelPosition ( xPosition . ALIGN_START , null ) ;
1284+ . addPanelPosition ( xPosition . ALIGN_START , null ) ;
12851285
12861286 config [ 'position' ] = position ;
12871287
@@ -1295,7 +1295,7 @@ describe('$mdPanel', function() {
12951295 it ( 'offset to the right of an element' , function ( ) {
12961296 var position = mdPanelPosition
12971297 . relativeTo ( myButton )
1298- . withPanelPosition ( xPosition . OFFSET_END , null ) ;
1298+ . addPanelPosition ( xPosition . OFFSET_END , null ) ;
12991299
13001300 config [ 'position' ] = position ;
13011301
@@ -1316,7 +1316,7 @@ describe('$mdPanel', function() {
13161316 var expression = function ( ) {
13171317 mdPanelPosition
13181318 . relativeTo ( myButton )
1319- . withPanelPosition ( 'fake-x-position' , null ) ;
1319+ . addPanelPosition ( 'fake-x-position' , null ) ;
13201320 } ;
13211321
13221322 expect ( expression ) . toThrow ( ) ;
0 commit comments